Skip to content

Commit

Permalink
Cleanup tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eduherminio committed Nov 18, 2024
1 parent 5d76efb commit 1aaa63a
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions tests/Lynx.Generator.Test/GeneratedPackTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ public class GeneratedPackTest
[Test]
public Task StaticClass()
{
// The source code to test
const string source = @"
using namespace Lynx.Generator;
Expand All @@ -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;
Expand All @@ -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;
Expand All @@ -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;
Expand All @@ -69,29 +62,25 @@ 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
{
[GeneratedPack(1, 2)]
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;
Expand All @@ -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;
Expand All @@ -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);
}

Expand Down

0 comments on commit 1aaa63a

Please sign in to comment.