-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: AutoFixture Source Generator (#1136)
* feature: AutoFixture Source Generator * tests passing adding new test for potential use case * moving builder extensions * fixing up all the warnings, realizing I am on CSharp11 * clean up after rebase * everything seems fantastic? * tests passing * I AM WERKING * fake it easy supported * fixing more stuffs * fixed using for mocking library * thanks to David no recursion for me! * this language version goes to 11 * thinking this gets rid of the cruff * reduced regex * more clean up * cleaned up folders and default source generator inclusions * attempting to generate the methods realizing some of the methods I will likely never use wondering if I should just generate the methods on a base type and force inheritance * generating fixture correctly, attribute went missing? * more fixing of stuffs seems the txt files are more correct * rebuilding verified source for tests * Automatically linting code * fixing the build * Automatically linting code * fixing the build... again * Automatically linting code * ensuring package is created or I would be salty --------- Co-authored-by: RLittlesII <[email protected]> Co-authored-by: David Driscoll <[email protected]> Co-authored-by: david-driscoll <[email protected]>
- Loading branch information
1 parent
84dd527
commit 2883969
Showing
42 changed files
with
2,877 additions
and
369 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
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
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,19 @@ | ||
namespace Rocket.Surgery.Extensions.Testing.AutoFixtures; | ||
|
||
internal static class AutoFixtureAttribute | ||
{ | ||
public const string Source = @"using System; | ||
using System.Diagnostics; | ||
namespace Rocket.Surgery.Extensions.Testing.AutoFixture | ||
{ | ||
[AttributeUsage(AttributeTargets.Class)] | ||
[Conditional(""CODEGEN"")] | ||
internal class AutoFixtureAttribute : Attribute | ||
{ | ||
public AutoFixtureAttribute(Type type) => Type = type; | ||
public Type Type { get; } | ||
} | ||
}"; | ||
} |
Oops, something went wrong.