@@ -85,5 +85,10 @@ namespace Jint.Tests.Runtime.Domain
{
return String.Format("{0}:{1}", firstParam, String.Join(",", values));
}
+
+ public void Call15(string x)
+ {
+ }
@@ -1083,21 +1083,33 @@ namespace Jint.Tests.Runtime
assert(x === null);
");
-
[Fact]
public void ShouldSetPropertyToNull()
var p = new Person { Name = "Mickey" };
_engine.SetValue("p", p);
RunTest(@"
assert(p.Name != null);
p.Name = null;
assert(p.Name == null);
Assert.True(p.Name == null);
+ [Fact]
+ public void ShouldCallMethodWithNull()
+ _engine.SetValue("a", new A());
+ RunTest(@"
+ a.Call15(null);
+ var result = a.Call2(null);
+ assert(result == null);
+ ");