AjScript.Tests.EvaluationTests.Typeof C# (CSharp) Méthode

Typeof() private méthode

private Typeof ( ) : void
Résultat void
        public void Typeof()
        {
            Assert.AreEqual("object", this.EvaluateExpression("typeof {}"));
            Assert.AreEqual("object", this.EvaluateExpression("typeof []"));
            Assert.AreEqual("number", this.EvaluateExpression("typeof 42"));
            Assert.AreEqual("number", this.EvaluateExpression("typeof 3.14159"));
            Assert.AreEqual("null", this.EvaluateExpression("typeof null"));
            Assert.AreEqual("undefined", this.EvaluateExpression("typeof undefined"));
        }
EvaluationTests