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