Fixup namespaces
This commit is contained in:
parent
7a362bcc0f
commit
fe3b5ea4dd
|
|
@ -4,7 +4,6 @@
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Microsoft.AspNetCore.Server.IntegrationTesting;
|
using Microsoft.AspNetCore.Server.IntegrationTesting;
|
||||||
using Microsoft.AspNetCore.Testing.xunit;
|
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Microsoft.AspNetCore.Localization.FunctionalTests
|
namespace Microsoft.AspNetCore.Localization.FunctionalTests
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Microsoft.AspNetCore.Server.IntegrationTesting;
|
using Microsoft.AspNetCore.Server.IntegrationTesting;
|
||||||
using Microsoft.AspNetCore.Testing.xunit;
|
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Microsoft.AspNetCore.Localization.FunctionalTests
|
namespace Microsoft.AspNetCore.Localization.FunctionalTests
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ using Microsoft.AspNetCore.Localization;
|
||||||
using Microsoft.AspNetCore.TestHost;
|
using Microsoft.AspNetCore.TestHost;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Microsoft.Extensions.Localization.Tests
|
namespace Microsoft.Extensions.Localization
|
||||||
{
|
{
|
||||||
public class AcceptLanguageHeaderRequestCultureProviderTest
|
public class AcceptLanguageHeaderRequestCultureProviderTest
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ using Microsoft.AspNetCore.TestHost;
|
||||||
using Microsoft.Net.Http.Headers;
|
using Microsoft.Net.Http.Headers;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Microsoft.Extensions.Localization.Tests
|
namespace Microsoft.Extensions.Localization
|
||||||
{
|
{
|
||||||
public class CookieRequestCultureProviderTest
|
public class CookieRequestCultureProviderTest
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ using Microsoft.AspNetCore.Localization;
|
||||||
using Microsoft.AspNetCore.TestHost;
|
using Microsoft.AspNetCore.TestHost;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Microsoft.Extensions.Localization.Tests
|
namespace Microsoft.Extensions.Localization
|
||||||
{
|
{
|
||||||
public class CustomRequestCultureProviderTest
|
public class CustomRequestCultureProviderTest
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ using Microsoft.AspNetCore.Localization;
|
||||||
using Microsoft.AspNetCore.TestHost;
|
using Microsoft.AspNetCore.TestHost;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Microsoft.Extensions.Localization.Tests
|
namespace Microsoft.Extensions.Localization
|
||||||
{
|
{
|
||||||
public class QueryStringRequestCultureProviderTest
|
public class QueryStringRequestCultureProviderTest
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,10 @@
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.Threading;
|
|
||||||
using Microsoft.AspNetCore.Builder;
|
using Microsoft.AspNetCore.Builder;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Microsoft.AspNetCore.Localization.Tests
|
namespace Microsoft.AspNetCore.Localization
|
||||||
{
|
{
|
||||||
public class RequestLocalizationOptionsTest : IDisposable
|
public class RequestLocalizationOptionsTest : IDisposable
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,11 @@
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.Localization;
|
||||||
using Microsoft.Extensions.Options;
|
using Microsoft.Extensions.Options;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Microsoft.Extensions.Localization.Test
|
namespace Microsoft.Extensions.DependencyInjection
|
||||||
{
|
{
|
||||||
public class LocalizationServiceCollectionExtensionsTest
|
public class LocalizationServiceCollectionExtensionsTest
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ using Microsoft.Extensions.Options;
|
||||||
using Moq;
|
using Moq;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
|
// This namespace intentionally matches the default assembly namespace.
|
||||||
namespace Microsoft.Extensions.Localization.Tests
|
namespace Microsoft.Extensions.Localization.Tests
|
||||||
{
|
{
|
||||||
public class TestResourceManagerStringLocalizerFactory : ResourceManagerStringLocalizerFactory
|
public class TestResourceManagerStringLocalizerFactory : ResourceManagerStringLocalizerFactory
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ using Microsoft.Extensions.Logging;
|
||||||
using Microsoft.Extensions.Logging.Testing;
|
using Microsoft.Extensions.Logging.Testing;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Microsoft.Extensions.Localization.Tests
|
namespace Microsoft.Extensions.Localization
|
||||||
{
|
{
|
||||||
public class ResourceManagerStringLocalizerTest
|
public class ResourceManagerStringLocalizerTest
|
||||||
{
|
{
|
||||||
|
|
@ -38,7 +38,7 @@ namespace Microsoft.Extensions.Localization.Tests
|
||||||
logger);
|
logger);
|
||||||
|
|
||||||
// Act
|
// Act
|
||||||
for (int i = 0; i < 5; i++)
|
for (var i = 0; i < 5; i++)
|
||||||
{
|
{
|
||||||
localizer1.GetAllStrings().ToList();
|
localizer1.GetAllStrings().ToList();
|
||||||
localizer2.GetAllStrings().ToList();
|
localizer2.GetAllStrings().ToList();
|
||||||
|
|
@ -229,13 +229,7 @@ namespace Microsoft.Extensions.Localization.Tests
|
||||||
|
|
||||||
private TestSink Sink { get; } = new TestSink();
|
private TestSink Sink { get; } = new TestSink();
|
||||||
|
|
||||||
private ILogger Logger
|
private ILogger Logger => new TestLoggerFactory(Sink, enabled: true).CreateLogger<ResourceManagerStringLocalizer>();
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return new TestLoggerFactory(Sink, true).CreateLogger<ResourceManagerStringLocalizer>();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public class TestResourceManager : ResourceManager
|
public class TestResourceManager : ResourceManager
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,5 @@ namespace ResourcesClassLibraryNoAttribute
|
||||||
{
|
{
|
||||||
public class Model
|
public class Model
|
||||||
{
|
{
|
||||||
public Model()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,5 @@ namespace ResourcesClassLibraryWithAttribute
|
||||||
{
|
{
|
||||||
public class Model
|
public class Model
|
||||||
{
|
{
|
||||||
public Model()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue