Esempio n. 1
0
        public void TestExceptionConditionMatching()
        {
            var obj = new CSTry_6.ExceptionUseCase();

            Assert.AreEqual(obj.InvalidError().Length > 0, true);
            Assert.AreEqual(obj.InvalidError(), @"error");
        }
Esempio n. 2
0
        public void TestExceptionConditionNotMatching()
        {
            var obj = new CSTry_6.ExceptionUseCase();

            Assert.Throws <Exception>(() => obj.MathError());
        }