Skip to content

Commit e060a8e

Browse files
fixes unit tests
1 parent 8725682 commit e060a8e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Src/DynamicCore/DynamicDebuggerVisualizer.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ internal void DeployLinqScript(Message message)
9797
Log.Write("dstScriptPath: {0}", dstScriptPath);
9898
string targetFolder = Path.Combine(dstScriptPath, message.AssemblyName);
9999

100-
if (!Directory.Exists(targetFolder))
101-
Directory.CreateDirectory(targetFolder);
100+
if (!FileSystem.Directory.Exists(targetFolder))
101+
FileSystem.Directory.CreateDirectory(targetFolder);
102102

103103
string linqPadScriptPath = Path.Combine(targetFolder, message.FileName);
104104
Log.Write("linqPadScriptPath: {0}", linqPadScriptPath);

Test/LINQBridgeVs.Test/DynamicCore.Test/DynamicDebuggerVisualizerTest.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ public class DynamicDebuggerVisualizerTest
2020
FileName = DateTime.Now.ToShortDateString().Replace("/", ""),
2121
TypeFullName = typeof(CustomType1).FullName,
2222
TypeNamespace = typeof(CustomType1).Namespace,
23-
TypeName = typeof(CustomType1).Name
23+
TypeName = typeof(CustomType1).Name,
24+
AssemblyName = typeof(CustomType1).Assembly.GetName().Name
2425
};
2526

2627

@@ -49,7 +50,7 @@ public void DeployLinqScriptTest()
4950

5051
string dstScriptPath = CommonFolderPaths.LinqPadQueryFolder;
5152

52-
string fileNamePath = Path.Combine(dstScriptPath, string.Format(_message.FileName, _message.TypeFullName));
53+
string fileNamePath = Path.Combine(dstScriptPath, _message.AssemblyName, _message.FileName);
5354

5455
Assert.IsTrue(_fileSystem.File.Exists(fileNamePath));
5556
}

0 commit comments

Comments
 (0)