C# ile,
Void dönen bir methodun testi nasıl yazılır.Assert ile unit test metodu yazmaktan bahsediyorum.
Örneğin
public void MethodA(MyClass c)
{
MethodB(c);
}
try-catch kullanilabilir.
Test edilecek metoda dokunmak istemiyorum.
Test edilecek methodun exception üretmediğini test etmem yeterli olur aslında. Ama onu Assert ile nasıl test ederim?