public void Test_Div_With_Zero_UsingTry() { try { SampCalc calcer = new SampCalc(); calcer.Div(1, 0); } catch (DivideByZeroException) { } }
public void Test_Div_With_Zero_UsingAttribute() { SampCalc calcer = new SampCalc(); calcer.Div(1, 0); }