property ancestor, pX, pY
on new me, testName
ancestor = script("TestCase", "LingoUnit").new(testName)
return me
end
on setUp me
pX = 3
pY = 2
end
on testSomething me
pX = pX * 3
me.assertEquals(9, pX)
me.assertTrue((pY - pX) < 0)
me.assertEquals("abc", "ABC") -- case insensitive.
me.assertEqualsCS("abc", "abc") -- case sensitive.
end
on testSomething2 me
me.assertEquals(3, pX, "OK")
me.assertEquals(3, pY, "failure!!")
end
|