Hey it's easy.
Just Right Click on the method you want to test
Choose Create Test Unit
And wualla the magic is creating new project for testing, and you are just coding on the What params to pass,
and then the Assert.
one thing about Assert is that if the result is false it Throw FAILED.
if true and it keep passing through.
common one:
Assert.EQUAL
ex:Assert.AreEqual(6, actual.Count, "Hey it should return just 6 member");
Assert.isnull
assert.notequal
and etc
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar