From 276705e5d2ee605734493ad840f952aa123d98a6 Mon Sep 17 00:00:00 2001 From: Burak Akgerman Date: Wed, 8 Jun 2022 21:08:35 -0400 Subject: [PATCH] rename unit tests to end in LayoutRendererTests --- ...RendererTests.cs => AspNetMvcActionLayoutRendererTests.cs} | 2 +- ...ererTests.cs => AspNetMvcControllerLayoutRendererTests.cs} | 2 +- ...s => AspNetRequestClientCertificateLayoutRendererTests.cs} | 2 +- ...Tests.cs => AspNetRequestHttpMethodLayoutRendererTests.cs} | 2 +- ...rerTests.cs => AspNetRequestLocalIpLayoutRendererTests.cs} | 2 +- ...rTests.cs => AspNetRequestLocalPortLayoutRendererTests.cs} | 2 +- ...erTests.cs => AspNetRequestReferrerLayoutRendererTests.cs} | 2 +- ...Tests.cs => AspNetRequestRemotePortLayoutRendererTests.cs} | 2 +- ....cs => AspNetRequestRouteParametersLayoutRendererTests.cs} | 2 +- ...endererTests.cs => AspNetRequestUrlLayoutRendererTests.cs} | 2 +- ...tTests.cs => AspNetRequestUserAgentLayoutRendererTests.cs} | 2 +- ...sts.cs => AspNetResponseContentTypeLayoutRendererTests.cs} | 2 +- ...ests.cs => AspNetResponseStatusCodeLayoutRendererTests.cs} | 2 +- ...erTests.cs => AspNetTraceIdentifierLayoutRendererTests.cs} | 4 ++-- 14 files changed, 15 insertions(+), 15 deletions(-) rename tests/Shared/LayoutRenderers/{AspNetMvcActionRendererTests.cs => AspNetMvcActionLayoutRendererTests.cs} (88%) rename tests/Shared/LayoutRenderers/{AspNetMvcControllerRendererTests.cs => AspNetMvcControllerLayoutRendererTests.cs} (88%) rename tests/Shared/LayoutRenderers/{AspNetRequestClientCertificateRendererTests.cs => AspNetRequestClientCertificateLayoutRendererTests.cs} (97%) rename tests/Shared/LayoutRenderers/{AspNetRequestHttpMethodRendererTests.cs => AspNetRequestHttpMethodLayoutRendererTests.cs} (87%) rename tests/Shared/LayoutRenderers/{AspNetRequestLocalIpRendererTests.cs => AspNetRequestLocalIpLayoutRendererTests.cs} (88%) rename tests/Shared/LayoutRenderers/{AspNetRequestLocalPortRendererTests.cs => AspNetRequestLocalPortLayoutRendererTests.cs} (91%) rename tests/Shared/LayoutRenderers/{AspNetRequestReferrerRendererTests.cs => AspNetRequestReferrerLayoutRendererTests.cs} (89%) rename tests/Shared/LayoutRenderers/{AspNetRequestRemotePortRendererTests.cs => AspNetRequestRemotePortLayoutRendererTests.cs} (90%) rename tests/Shared/LayoutRenderers/{AspNetRequestRouteParametersRendererTests.cs => AspNetRequestRouteParametersLayoutRendererTests.cs} (94%) rename tests/Shared/LayoutRenderers/{AspNetRequestUrlRendererTests.cs => AspNetRequestUrlLayoutRendererTests.cs} (98%) rename tests/Shared/LayoutRenderers/{AspNetRequestUserAgentTests.cs => AspNetRequestUserAgentLayoutRendererTests.cs} (89%) rename tests/Shared/LayoutRenderers/{AspNetResponseContentTypeRendererTests.cs => AspNetResponseContentTypeLayoutRendererTests.cs} (80%) rename tests/Shared/LayoutRenderers/{AspNetResponseStatusCodeRendererTests.cs => AspNetResponseStatusCodeLayoutRendererTests.cs} (90%) rename tests/Shared/LayoutRenderers/{AspNetTraceIdentifierRendererTests.cs => AspNetTraceIdentifierLayoutRendererTests.cs} (94%) diff --git a/tests/Shared/LayoutRenderers/AspNetMvcActionRendererTests.cs b/tests/Shared/LayoutRenderers/AspNetMvcActionLayoutRendererTests.cs similarity index 88% rename from tests/Shared/LayoutRenderers/AspNetMvcActionRendererTests.cs rename to tests/Shared/LayoutRenderers/AspNetMvcActionLayoutRendererTests.cs index 9cd3cbc4..5d85663a 100644 --- a/tests/Shared/LayoutRenderers/AspNetMvcActionRendererTests.cs +++ b/tests/Shared/LayoutRenderers/AspNetMvcActionLayoutRendererTests.cs @@ -17,7 +17,7 @@ namespace NLog.Web.Tests.LayoutRenderers { - public class AspNetMvcActionRendererTests : LayoutRenderersTestBase + public class AspNetMvcActionLayoutRendererTests : LayoutRenderersTestBase { [Fact] public void NullRoutesRenderersEmptyString() diff --git a/tests/Shared/LayoutRenderers/AspNetMvcControllerRendererTests.cs b/tests/Shared/LayoutRenderers/AspNetMvcControllerLayoutRendererTests.cs similarity index 88% rename from tests/Shared/LayoutRenderers/AspNetMvcControllerRendererTests.cs rename to tests/Shared/LayoutRenderers/AspNetMvcControllerLayoutRendererTests.cs index b0764ae2..d8164caa 100644 --- a/tests/Shared/LayoutRenderers/AspNetMvcControllerRendererTests.cs +++ b/tests/Shared/LayoutRenderers/AspNetMvcControllerLayoutRendererTests.cs @@ -19,7 +19,7 @@ namespace NLog.Web.Tests.LayoutRenderers { - public class AspNetMvcControllerRendererTests : LayoutRenderersTestBase + public class AspNetMvcControllerLayoutRendererTests : LayoutRenderersTestBase { [Fact] public void NullRoutesRenderersEmptyString() diff --git a/tests/Shared/LayoutRenderers/AspNetRequestClientCertificateRendererTests.cs b/tests/Shared/LayoutRenderers/AspNetRequestClientCertificateLayoutRendererTests.cs similarity index 97% rename from tests/Shared/LayoutRenderers/AspNetRequestClientCertificateRendererTests.cs rename to tests/Shared/LayoutRenderers/AspNetRequestClientCertificateLayoutRendererTests.cs index db416df8..7816f56d 100644 --- a/tests/Shared/LayoutRenderers/AspNetRequestClientCertificateRendererTests.cs +++ b/tests/Shared/LayoutRenderers/AspNetRequestClientCertificateLayoutRendererTests.cs @@ -8,7 +8,7 @@ namespace NLog.Web.Tests.LayoutRenderers { - public class AspNetRequestClientCertificateRendererTests : LayoutRenderersTestBase + public class AspNetRequestClientCertificateLayoutRendererTests : LayoutRenderersTestBase { #if ASP_NET_CORE [Fact] diff --git a/tests/Shared/LayoutRenderers/AspNetRequestHttpMethodRendererTests.cs b/tests/Shared/LayoutRenderers/AspNetRequestHttpMethodLayoutRendererTests.cs similarity index 87% rename from tests/Shared/LayoutRenderers/AspNetRequestHttpMethodRendererTests.cs rename to tests/Shared/LayoutRenderers/AspNetRequestHttpMethodLayoutRendererTests.cs index af1bbf60..21356691 100644 --- a/tests/Shared/LayoutRenderers/AspNetRequestHttpMethodRendererTests.cs +++ b/tests/Shared/LayoutRenderers/AspNetRequestHttpMethodLayoutRendererTests.cs @@ -16,7 +16,7 @@ namespace NLog.Web.Tests.LayoutRenderers { - public class AspNetRequestHttpMethodRendererTests : LayoutRenderersTestBase + public class AspNetRequestHttpMethodLayoutRendererTests : LayoutRenderersTestBase { [Fact] public void HttpMethod_Set_Renderer() diff --git a/tests/Shared/LayoutRenderers/AspNetRequestLocalIpRendererTests.cs b/tests/Shared/LayoutRenderers/AspNetRequestLocalIpLayoutRendererTests.cs similarity index 88% rename from tests/Shared/LayoutRenderers/AspNetRequestLocalIpRendererTests.cs rename to tests/Shared/LayoutRenderers/AspNetRequestLocalIpLayoutRendererTests.cs index f69ba857..b564e451 100644 --- a/tests/Shared/LayoutRenderers/AspNetRequestLocalIpRendererTests.cs +++ b/tests/Shared/LayoutRenderers/AspNetRequestLocalIpLayoutRendererTests.cs @@ -6,7 +6,7 @@ namespace NLog.Web.Tests.LayoutRenderers { - public class AspNetRequestLocalIpRendererTests : LayoutRenderersTestBase + public class AspNetRequestLocalIpLayoutRendererTests : LayoutRenderersTestBase { [Fact] public void SuccessTest() diff --git a/tests/Shared/LayoutRenderers/AspNetRequestLocalPortRendererTests.cs b/tests/Shared/LayoutRenderers/AspNetRequestLocalPortLayoutRendererTests.cs similarity index 91% rename from tests/Shared/LayoutRenderers/AspNetRequestLocalPortRendererTests.cs rename to tests/Shared/LayoutRenderers/AspNetRequestLocalPortLayoutRendererTests.cs index c310e49e..1f161a5f 100644 --- a/tests/Shared/LayoutRenderers/AspNetRequestLocalPortRendererTests.cs +++ b/tests/Shared/LayoutRenderers/AspNetRequestLocalPortLayoutRendererTests.cs @@ -5,7 +5,7 @@ namespace NLog.Web.Tests.LayoutRenderers { - public class AspNetRequestLocalPortRendererTests : LayoutRenderersTestBase + public class AspNetRequestLocalPortLayoutRendererTests : LayoutRenderersTestBase { #if ASP_NET_CORE [Fact] diff --git a/tests/Shared/LayoutRenderers/AspNetRequestReferrerRendererTests.cs b/tests/Shared/LayoutRenderers/AspNetRequestReferrerLayoutRendererTests.cs similarity index 89% rename from tests/Shared/LayoutRenderers/AspNetRequestReferrerRendererTests.cs rename to tests/Shared/LayoutRenderers/AspNetRequestReferrerLayoutRendererTests.cs index 99a94eff..43d45648 100644 --- a/tests/Shared/LayoutRenderers/AspNetRequestReferrerRendererTests.cs +++ b/tests/Shared/LayoutRenderers/AspNetRequestReferrerLayoutRendererTests.cs @@ -14,7 +14,7 @@ namespace NLog.Web.Tests.LayoutRenderers { - public class AspNetRequestReferrerRendererTests : LayoutRenderersTestBase + public class AspNetRequestReferrerLayoutRendererTests : LayoutRenderersTestBase { [Fact] public void ReferrerPresentRenderNonEmptyString() diff --git a/tests/Shared/LayoutRenderers/AspNetRequestRemotePortRendererTests.cs b/tests/Shared/LayoutRenderers/AspNetRequestRemotePortLayoutRendererTests.cs similarity index 90% rename from tests/Shared/LayoutRenderers/AspNetRequestRemotePortRendererTests.cs rename to tests/Shared/LayoutRenderers/AspNetRequestRemotePortLayoutRendererTests.cs index d0f61672..8f2c0ca3 100644 --- a/tests/Shared/LayoutRenderers/AspNetRequestRemotePortRendererTests.cs +++ b/tests/Shared/LayoutRenderers/AspNetRequestRemotePortLayoutRendererTests.cs @@ -5,7 +5,7 @@ namespace NLog.Web.Tests.LayoutRenderers { - public class AspNetRequestRemotePortRendererTests : LayoutRenderersTestBase + public class AspNetRequestRemotePortLayoutRendererTests : LayoutRenderersTestBase { [Fact] public void SuccessTest() diff --git a/tests/Shared/LayoutRenderers/AspNetRequestRouteParametersRendererTests.cs b/tests/Shared/LayoutRenderers/AspNetRequestRouteParametersLayoutRendererTests.cs similarity index 94% rename from tests/Shared/LayoutRenderers/AspNetRequestRouteParametersRendererTests.cs rename to tests/Shared/LayoutRenderers/AspNetRequestRouteParametersLayoutRendererTests.cs index a3cc258d..5ab72061 100644 --- a/tests/Shared/LayoutRenderers/AspNetRequestRouteParametersRendererTests.cs +++ b/tests/Shared/LayoutRenderers/AspNetRequestRouteParametersLayoutRendererTests.cs @@ -13,7 +13,7 @@ namespace NLog.Web.Tests.LayoutRenderers { - public class AspNetRequestRouteParametersRendererTests : LayoutRenderersTestBase + public class AspNetRequestRouteParametersLayoutRendererTests : LayoutRenderersTestBase { [Fact] public void NullRouteParametersRenderersEmptyString() diff --git a/tests/Shared/LayoutRenderers/AspNetRequestUrlRendererTests.cs b/tests/Shared/LayoutRenderers/AspNetRequestUrlLayoutRendererTests.cs similarity index 98% rename from tests/Shared/LayoutRenderers/AspNetRequestUrlRendererTests.cs rename to tests/Shared/LayoutRenderers/AspNetRequestUrlLayoutRendererTests.cs index b115d778..83e8432d 100644 --- a/tests/Shared/LayoutRenderers/AspNetRequestUrlRendererTests.cs +++ b/tests/Shared/LayoutRenderers/AspNetRequestUrlLayoutRendererTests.cs @@ -21,7 +21,7 @@ namespace NLog.Web.Tests.LayoutRenderers { - public class AspNetRequestUrlRendererTests : LayoutRenderersTestBase + public class AspNetRequestUrlLayoutRendererTests : LayoutRenderersTestBase { [Fact] public void UrlPresentRenderNonEmpty_Default() diff --git a/tests/Shared/LayoutRenderers/AspNetRequestUserAgentTests.cs b/tests/Shared/LayoutRenderers/AspNetRequestUserAgentLayoutRendererTests.cs similarity index 89% rename from tests/Shared/LayoutRenderers/AspNetRequestUserAgentTests.cs rename to tests/Shared/LayoutRenderers/AspNetRequestUserAgentLayoutRendererTests.cs index 6baa3de6..f24b8682 100644 --- a/tests/Shared/LayoutRenderers/AspNetRequestUserAgentTests.cs +++ b/tests/Shared/LayoutRenderers/AspNetRequestUserAgentLayoutRendererTests.cs @@ -16,7 +16,7 @@ namespace NLog.Web.Tests.LayoutRenderers { - public class AspNetRequestUserAgentTests : LayoutRenderersTestBase + public class AspNetRequestUserAgentLayoutRendererTests : LayoutRenderersTestBase { [Fact] public void NotNullUserAgentRendersEmptyString() diff --git a/tests/Shared/LayoutRenderers/AspNetResponseContentTypeRendererTests.cs b/tests/Shared/LayoutRenderers/AspNetResponseContentTypeLayoutRendererTests.cs similarity index 80% rename from tests/Shared/LayoutRenderers/AspNetResponseContentTypeRendererTests.cs rename to tests/Shared/LayoutRenderers/AspNetResponseContentTypeLayoutRendererTests.cs index 6cb5d432..1b7132e3 100644 --- a/tests/Shared/LayoutRenderers/AspNetResponseContentTypeRendererTests.cs +++ b/tests/Shared/LayoutRenderers/AspNetResponseContentTypeLayoutRendererTests.cs @@ -4,7 +4,7 @@ namespace NLog.Web.Tests.LayoutRenderers { - public class AspNetResponseContentTypeRendererTests : LayoutRenderersTestBase + public class AspNetResponseContentTypeLayoutRendererTests : LayoutRenderersTestBase { [Fact] public void StatusCode_Set_Renderer() diff --git a/tests/Shared/LayoutRenderers/AspNetResponseStatusCodeRendererTests.cs b/tests/Shared/LayoutRenderers/AspNetResponseStatusCodeLayoutRendererTests.cs similarity index 90% rename from tests/Shared/LayoutRenderers/AspNetResponseStatusCodeRendererTests.cs rename to tests/Shared/LayoutRenderers/AspNetResponseStatusCodeLayoutRendererTests.cs index 608d2346..2352de4c 100644 --- a/tests/Shared/LayoutRenderers/AspNetResponseStatusCodeRendererTests.cs +++ b/tests/Shared/LayoutRenderers/AspNetResponseStatusCodeLayoutRendererTests.cs @@ -4,7 +4,7 @@ namespace NLog.Web.Tests.LayoutRenderers { - public class AspNetResponseStatusCodeRendererTests : LayoutRenderersTestBase + public class AspNetResponseStatusCodeLayoutRendererTests : LayoutRenderersTestBase { [Fact] public void StatusCode_Set_Renderer() diff --git a/tests/Shared/LayoutRenderers/AspNetTraceIdentifierRendererTests.cs b/tests/Shared/LayoutRenderers/AspNetTraceIdentifierLayoutRendererTests.cs similarity index 94% rename from tests/Shared/LayoutRenderers/AspNetTraceIdentifierRendererTests.cs rename to tests/Shared/LayoutRenderers/AspNetTraceIdentifierLayoutRendererTests.cs index 00de7a37..d8f013e8 100644 --- a/tests/Shared/LayoutRenderers/AspNetTraceIdentifierRendererTests.cs +++ b/tests/Shared/LayoutRenderers/AspNetTraceIdentifierLayoutRendererTests.cs @@ -13,7 +13,7 @@ namespace NLog.Web.Tests.LayoutRenderers { - public class AspNetTraceIdentifierRendererTests : LayoutRenderersTestBase + public class AspNetTraceIdentifierLayoutRendererTests : LayoutRenderersTestBase { [Fact] public void EmptyGuidRendersEmptyString() @@ -55,7 +55,7 @@ public void AvailableActivityIdOverridesGuid() SetTraceIdentifier(httpContext, expectedResult); System.Diagnostics.Activity.Current = new System.Diagnostics.Activity("MyOperation").Start(); - + // Act string result = renderer.Render(new LogEventInfo());