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

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

            data.ThrowException(false);
        }