示例#1
0
        public void EqualsIErrorBuilder_WhenObjectIsErrorBuilder_ReturnsTrue()
        {
            var eb = new ErrorBuilder(
                ErrorCode.Unknown,
                new ErrorData.ExceptionData(new Exception())
                );

            Assert.True(eb.Equals((IErrorBuilder)eb));
        }
示例#2
0
        public void EqualsIErrorBuilder_WhenObjectIsNull_ReturnsFalse()
        {
            var eb = new ErrorBuilder(
                ErrorCode.Unknown,
                new ErrorData.ExceptionData(new Exception())
                );

            Assert.False(eb.Equals((IErrorBuilder?)null));
        }