Пример #1
0
        public void CapturedErrorCodeAtOKTest()
        {
            var ce = new CapturedError();

            ce.ErrorCode("Level-1", "Cap", 12);
            Assert.IsTrue(ce.CodeAt(2) is int);
            Assert.IsTrue((int)ce.CodeAt(2) == 12);
        }
Пример #2
0
        public void CapturedErrorCodeAtIndexIsNegativeTest()
        {
            var ce = new CapturedError();

            ce.ErrorCode("Level-1", "Cap", 12);
            Assert.IsTrue(ce.CodeAt(-1) is null);
        }
Пример #3
0
        public void CapturedErrorCodeAtIndexTooBigTest()
        {
            var ce = new CapturedError();

            ce.ErrorCode("Level-1", "Cap", 12);
            Assert.IsTrue(ce.CodeAt(3) is null);
        }