Exemplo n.º 1
0
        public void EqualsIErrorBuilder_WhenObjectIsErrorBuilder_ReturnsTrue()
        {
            var eb = new ErrorBuilder(
                ErrorCode.Unknown,
                new ErrorData.ExceptionData(new Exception())
                );

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

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