Beispiel #1
0
        public void ThrowExceptionTest1()
        {
            SimpleData data = new SimpleData();
            var        ex1  = Assert.ThrowsException <Exception>(() => data.ThrowException(true));

            Assert.AreEqual(ex1.Message, "YES");
        }
Beispiel #2
0
        public void ThrowExceptionTest2()
        {
            SimpleData data = new SimpleData();

            data.ThrowException(false);
        }