-
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix source generation for tests in already compiled libraries where s…
…yntax isn't available (#1894) * Non-syntax fallback * Set DataAttributes properly * Don't repeat writing IDataSourceGeneratorAttribute * Fix [Arguments] attribute in a separate assembly * Update snaps
- Loading branch information
Showing
29 changed files
with
1,692 additions
and
1,255 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using TUnit.Core.SourceGenerator.CodeGenerators; | ||
|
||
namespace TUnit.Core.SourceGenerator.Tests.Bugs._1889; | ||
|
||
internal class Tests1889 : TestsBase<TestsGenerator> | ||
{ | ||
[Test] | ||
public Task Test() => RunTest(Path.Combine(Git.RootDirectory.FullName, | ||
"TUnit.TestProject", | ||
"Bugs", | ||
"1889", | ||
"DerivedTest.cs"), | ||
async generatedFiles => | ||
{ | ||
await Assert.That(generatedFiles.Length).IsEqualTo(1); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.