Beispiel #1
0
        public void CapturedErrorIsCodeObjectTypeDifferenceTest()
        {
            var ce = new CapturedError();

            ce.ErrorCode("Level-1", "Cap", 12);
            Assert.IsFalse(ce.IsCode("Level-1", "Cap", "12"));
        }
Beispiel #2
0
        public void CapturedErrorIsCodeMismatchValueTest()
        {
            var ce = new CapturedError();

            ce.ErrorCode("Level-1", "Cap", 12);
            Assert.IsFalse(ce.IsCode("Level-1", "Cap", 14));
        }
Beispiel #3
0
        public void CapturedErrorIsCodeSoughtTooLongTest()
        {
            var ce = new CapturedError();

            ce.ErrorCode("Level-1", "Cap", 12);
            Assert.IsFalse(ce.IsCode("Level-1", "Cap", 12, "Too long"));
        }
Beispiel #4
0
        public void CapturedErrorIsCodeTest()
        {
            var ce = new CapturedError();

            ce.ErrorCode("Level-1", "Cap", 12);
            Assert.IsTrue(ce.IsCode("Level-1", "Cap", 12));
        }