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); }
public void CapturedErrorCodeAtIndexIsNegativeTest() { var ce = new CapturedError(); ce.ErrorCode("Level-1", "Cap", 12); Assert.IsTrue(ce.CodeAt(-1) is null); }
public void CapturedErrorCodeAtIndexTooBigTest() { var ce = new CapturedError(); ce.ErrorCode("Level-1", "Cap", 12); Assert.IsTrue(ce.CodeAt(3) is null); }