Пример #1
0
        public void DoisUnauthorizedResultIguaisDevemRetornarEqualIgualATrue()
        {
            UnauthorizedResult resultDest = new UnauthorizedResult("message");
            UnauthorizedResult resultSource = new UnauthorizedResult("message");

            Assert.IsTrue(resultDest.Equals(resultSource));
        }
Пример #2
0
        public void DoisUnauthorizedResultDiferentesDevemRetornarEqualIgualAFalse()
        {
            UnauthorizedResult resultDest = new UnauthorizedResult("message");
            UnauthorizedResult resultSource = new UnauthorizedResult("other message");

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