public void TestExceptionConditionMatching() { var obj = new CSTry_6.ExceptionUseCase(); Assert.AreEqual(obj.InvalidError().Length > 0, true); Assert.AreEqual(obj.InvalidError(), @"error"); }
public void TestExceptionConditionNotMatching() { var obj = new CSTry_6.ExceptionUseCase(); Assert.Throws <Exception>(() => obj.MathError()); }