示例#1
0
        public void TestExceptionConditionMatching()
        {
            var obj = new CSTry_6.ExceptionUseCase();

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

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