public void ThrowExceptionTest1() { SimpleData data = new SimpleData(); var ex1 = Assert.ThrowsException <Exception>(() => data.ThrowException(true)); Assert.AreEqual(ex1.Message, "YES"); }
public void ThrowExceptionTest2() { SimpleData data = new SimpleData(); data.ThrowException(false); }