Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pwelter34 committed Aug 9, 2023
1 parent 3a2f1f6 commit 1900db6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions src/FluentCommand.Generators/DataReaderFactoryWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public static class DataReaderFactoryWriter
private static int _counter = 0;
#endif

public static string Generate(EntityClass entityClass, bool skipVersion = false)
public static string Generate(EntityClass entityClass)
{
if (entityClass == null)
throw new ArgumentNullException(nameof(entityClass));
Expand Down Expand Up @@ -38,12 +38,12 @@ public static string Generate(EntityClass entityClass, bool skipVersion = false)
.AppendLine("/// Extension methods for FluentCommand")
.AppendLine("/// </summary>");

//codeBuilder
// .Append("[global::System.CodeDom.Compiler.GeneratedCode(\"")
// .Append(ThisAssembly.Project.AssemblyName)
// .Append("\", \"")
// .Append(skipVersion ? "1.0.0.0" : ThisAssembly.Info.Version)
// .AppendLine("\")]");
codeBuilder
.Append("[global::System.CodeDom.Compiler.GeneratedCode(\"")
.Append("FluentCommand.Generators")
.Append("\", \"")
.Append("1.0.0.0")
.AppendLine("\")]");

codeBuilder
.AppendLine("[global::System.Diagnostics.DebuggerNonUserCodeAttribute]")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public async Task Generate()
}.ToImmutableArray()
);

var source = DataReaderFactoryWriter.Generate(entityClass, true);
var source = DataReaderFactoryWriter.Generate(entityClass);

await Verifier
.Verify(source)
Expand Down

0 comments on commit 1900db6

Please sign in to comment.