Browse Source

Fixing unit test

Sébastien Ros 10 years ago
parent
commit
6da38e8625
1 changed files with 3 additions and 2 deletions
  1. 3 2
      Jint.Tests/Runtime/InteropTests.cs

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

@@ -1087,9 +1087,10 @@ namespace Jint.Tests.Runtime
         [Fact]
         public void ShouldSetPropertyToNull()
         {
-            _engine.SetValue("p", new Person { Name = "Mickey" });
+            var p = new Person { Name = "Mickey" };
+            _engine.SetValue("p", p);
             
-            RuntTests(@"
+            RunTest(@"
                 assert(p.Name != null);
                 p.Name = null;
                 assert(isnull(p.Name) === true);