Ejemplo n.º 1
0
        public void Should_FailEqualityForDifferentMessageTypes()
        {
            var selectReq = new SelectReq(1, 2);
            var selectRsp = new SelectRsp(1, 2, 1);

            Assert.IsFalse(selectReq.Equals(selectRsp));
        }
Ejemplo n.º 2
0
        public void Should_FailEqualityForDifferetObjectTypes()
        {
            var selectReq = new SelectReq(1, 2);
            var obj       = "test";

            Assert.IsFalse(selectReq.Equals(obj));
        }
Ejemplo n.º 3
0
        public void Should_BeEqualIfSelectReqsEqual()
        {
            var selectReq  = new SelectReq(1, 2);
            var selectReq2 = new SelectReq(1, 2);

            Assert.IsTrue(selectReq.Equals(selectReq2));
        }
Ejemplo n.º 4
0
        public void Should_FailEqualityForDifferentContext()
        {
            var selectReq  = new SelectReq(1, 1);
            var selectReq2 = new SelectReq(1, 2);

            Assert.IsFalse(selectReq.Equals(selectReq2));
        }
Ejemplo n.º 5
0
        public void Should_FailEqualityForNull()
        {
            var selectReq = new SelectReq(1, 2);

            Assert.IsFalse(selectReq.Equals(null));
        }