Skip to content

Commit 11a3aa3

Browse files
committed
Implemented 'ShouldIsolateScriptAssemblies' test for full assembly isolation.
1 parent 056901d commit 11a3aa3

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/Dotnet.Script.Tests/ScriptExecutionTests.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,12 @@ public void ShouldIgnoreGlobalJsonInScriptFolder()
472472
Assert.Contains("Hello world!", result.output);
473473
}
474474

475+
[Fact]
476+
public void ShouldIsolateScriptAssemblies()
477+
{
478+
var result = ScriptTestRunner.Default.ExecuteFixture("Isolation");
479+
Assert.Contains("10.0.0.0", result.output);
480+
}
475481

476482
private static string CreateTestScript(string scriptFolder)
477483
{
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#r "nuget:Newtonsoft.Json, 10.0.1"
2+
3+
using Newtonsoft.Json;
4+
5+
var version = typeof(JsonConvert).Assembly.GetName().Version;
6+
Console.WriteLine(version);

0 commit comments

Comments
 (0)