Skip to content

Commit

Permalink
Fixing generator test class reference issue
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveWilkes committed Aug 2, 2021
1 parent 03d947b commit 2daee00
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace AgileObjects.BuildableExpressions.Generator.Console
{
public class ExpressionBuilderOutputClass
{
public static readonly string TypeAssemblyLocation = "C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\5.0.7\\System.Private.CoreLib.dll";
public static readonly string TypeAssemblyLocation = "C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\5.0.8\\System.Private.CoreLib.dll";

public string GetNameNetCore3()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using System.Linq;
using BuildableExpressions.Generator.InputOutput;
using BuildableExpressions.SourceCode;
using BuildableExpressions.UnitTests.Common;
using Configuration;
using Generator.Configuration;
using Logging;
Expand All @@ -32,9 +31,9 @@ public void ShouldWriteToRootDirectory()
{
sc.SetNamespace(project.RootNamespace);
sc.AddClass(cls =>
sc.AddClass("GeneratedExpressionClass", cls =>
{
cls.AddMethod(Empty());
cls.AddMethod("DoAction", Empty());
});
});

Expand All @@ -61,9 +60,9 @@ public void ShouldWriteToNamespaceDirectories()
{
sc.SetNamespace($"{project.RootNamespace}.GeneratedCode");
sc.AddClass(cls =>
sc.AddClass("GeneratedExpressionClass", cls =>
{
cls.AddMethod(Empty());
cls.AddMethod("DoAction", Empty());
});
});

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
namespace AgileObjects.BuildableExpressions.UnitTests.Common
namespace AgileObjects.BuildableExpressions.UnitTests
{
using System;
using System.Linq.Expressions;
using SourceCode;
using SourceCode.Api;
using AgileObjects.BuildableExpressions.SourceCode;
using AgileObjects.BuildableExpressions.SourceCode.Api;
using static System.Linq.Expressions.Expression;

public static class SourceCodeExpressionTestExtensions
Expand Down

0 comments on commit 2daee00

Please sign in to comment.