public void Method1Test_乎較時應回傳結果維7() { var Sut = new EasyMethod(); var expected = 7; var actual = Sut.Method1(); Assert.AreEqual(expected, actual); }
public void Method1Test_呼叫時應回傳結果為7() { //assert var Sut = new EasyMethod(); var expected = 7; //arrange var actual = Sut.Method1(); //act Assert.AreEqual(expected, actual); }