예제 #1
0
        public void IF_Exception_Is_ErrorException_and_Error_is_same_SHOULD_return_TRUE()
        {
            //Arrange
            var errorException = new ErrorException(TestErrors.TestErrorTwo);

            //Act
            var result = errorException.IsErrorException(TestErrors.TestErrorTwo);

            //Assert
            Assert.IsTrue(result);
        }
예제 #2
0
        public void IF_Exception_Is_ErrorException_and_Error_is_different_SHOULD_return_FALSE()
        {
            //Arrange
            var errorException = new ErrorException(TestErrors.TestErrorTwo);

            //Act
            var result = errorException.IsErrorException(TestErrors.TestErrorOne);

            //Assert
            Assert.IsFalse(result);
        }