static void IsBoolean(string s, bool v = true, string msg = null) { RuntimeObj o = ScriptEngine.Evaluate(s); Assert.IsInstanceOf <JSEvalBoolean>(o); Assert.That(o.ToBoolean(), Is.EqualTo(v), msg ?? s); }
static void IsBoolean(string s, bool v = true, string msg = null) { RuntimeObj o = ScriptEngine.Evaluate(s); o.Should().BeOfType <BooleanObj>(); o.ToBoolean().Should().Be(v, msg ?? s); }