VB Script examples: sub setup() assert.trace "setup" end sub sub TestTrace() Assert.Trace "Testing-subs.vbs logic" end sub sub TestAssert() s = "Test visual basic script" Assert.Equals s,"Test visual basic script" Assert.Equals s,"Test visual basic script", "The strings do not match" Assert.Equals 2+2, 4, "Basic arithmetic failure" Assert.IsTrue 2=2 Assert.IsTrue 3>2, "Three is not greater than two - bogus logic" Assert.IsFalse 1=2 Assert.IsFalse 3<2, "Three is less than two - bogus logic" end sub sub TestObject set s = createObject("SuperOfficeDB.Database") ''' Assert.Equals s,"Test visual basic script" Assert.IsSomething s, "Database object not created" set s = nothing Assert.IsNothing s end sub Javascript examples: function TestOne() { Assert.IsTrue("a" > ""); } function TestTwo() { Assert.IsNothing(null); } function TestThree() { Assert.IsEqual("a", "a", "The a's don't match"); }