diff --git a/tests/Lynx.Generator.Test/GeneratedPackTest.cs b/tests/Lynx.Generator.Test/GeneratedPackTest.cs index 932ebbef9..656b95038 100644 --- a/tests/Lynx.Generator.Test/GeneratedPackTest.cs +++ b/tests/Lynx.Generator.Test/GeneratedPackTest.cs @@ -8,7 +8,6 @@ public class GeneratedPackTest [Test] public Task StaticClass() { - // The source code to test const string source = @" using namespace Lynx.Generator; @@ -18,14 +17,12 @@ public static partial class TestClass public static readonly int _TestConstant; }"; - // Pass the source code to our helper and snapshot test the output return Verify(source); } [Test] public Task NonStaticClass() { - // The source code to test const string source = @" using namespace Lynx.Generator; @@ -35,14 +32,12 @@ public partial class TestClass public static readonly int _TestConstant; }"; - // Pass the source code to our helper and snapshot test the output return Verify(source); } [Test] public Task PrivateStaticReadonlyField() { - // The source code to test const string source = @" using namespace Lynx.Generator; @@ -52,14 +47,12 @@ public partial class TestClass private static readonly int _TestConstant; }"; - // Pass the source code to our helper and snapshot test the output return Verify(source); } [Test] public Task NamedArguments() { - // The source code to test const string source = @" using namespace Lynx.Generator; @@ -69,14 +62,12 @@ public partial class TestClass private static readonly int _TestConstant; }"; - // Pass the source code to our helper and snapshot test the output return Verify(source); } [Test] public Task NoNamespaceImport_ShouldNotGenerateConstant() { - // The source code to test const string source = @" public partial class TestClass { @@ -84,14 +75,12 @@ public partial class TestClass private static readonly int _TestConstant; }"; - // Pass the source code to our helper and snapshot test the output return Verify(source); } [Test] public Task TwoAttributes_ShouldNotGenerateConstant() { - // The source code to test const string source = @" using namespace Lynx.Generator; @@ -102,14 +91,12 @@ public partial class TestClass private static readonly int _TestConstant; }"; - // Pass the source code to our helper and snapshot test the output return Verify(source); } [Test] public Task NoAttributes_ShouldNotGenerateConstant() { - // The source code to test const string source = @" using namespace Lynx.Generator; @@ -118,7 +105,6 @@ public partial class TestClass private static readonly int _TestConstant; }"; - // Pass the source code to our helper and snapshot test the output return Verify(source); }