Example #1
-1
        public void DoisErrorsResultGenericsDiferentesDevemRetornarEqualIgualAFalse()
        {
            ErrorResult<string> resultDest = new ErrorResult<string>("key", "message");
            ErrorResult<int> resultSource = new ErrorResult<int>(0, "other message");

            Assert.IsFalse(resultDest.Equals(resultSource));
        }
Example #2
-1
        public void DoisErrorsResultIguaisDevemRetornarEqualIgualATrue()
        {
            ErrorResult resultDest = new ErrorResult("key", "message");
            ErrorResult resultSource = new ErrorResult("key", "message");

            Assert.IsTrue(resultDest.Equals(resultSource));
        }
Example #3
-1
        public void DoisErrorsResultDiferentesDevemRetornarEqualIgualAFalse()
        {
            ErrorResult resultDest = new ErrorResult("key", "message");
            ErrorResult resultSource = new ErrorResult("key", "other message");

            Assert.IsFalse(resultDest.Equals(resultSource));
        }