コード例 #1
0
        public void DoisForbiddenResultIguaisDevemRetornarEqualIgualATrue()
        {
            ForbiddenResult resultDest = new ForbiddenResult("message");
            ForbiddenResult resultSource = new ForbiddenResult("message");

            Assert.IsTrue(resultDest.Equals(resultSource));
        }
コード例 #2
0
        public void DoisForbiddenResultDiferentesDevemRetornarEqualIgualAFalse()
        {
            ForbiddenResult resultDest = new ForbiddenResult("message");
            ForbiddenResult resultSource = new ForbiddenResult("other message");

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