Browse Source

Fixing unit test

System.IO.File is not in mscorlib in dotnet core
Sebastien Ros 8 years ago
parent
commit
7aee664c92
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Jint.Tests/Runtime/InteropTests.cs

+ 3 - 1
Jint.Tests/Runtime/InteropTests.cs

@@ -17,7 +17,9 @@ namespace Jint.Tests.Runtime
 
         public InteropTests()
         {
-            _engine = new Engine(cfg => cfg.AllowClr(typeof(Shape).GetTypeInfo().Assembly))
+            _engine = new Engine(cfg => cfg.AllowClr(
+                typeof(Shape).GetTypeInfo().Assembly,
+                typeof(System.IO.File).GetTypeInfo().Assembly))
                 .SetValue("log", new Action<object>(Console.WriteLine))
                 .SetValue("assert", new Action<bool>(Assert.True))
                 .SetValue("equal", new Action<object, object>(Assert.Equal))