コード例 #1
0
ファイル: SelectReq.cs プロジェクト: hpavolot/hsms-protocol
        public void Should_FailEqualityForDifferentMessageTypes()
        {
            var selectReq = new SelectReq(1, 2);
            var selectRsp = new SelectRsp(1, 2, 1);

            Assert.IsFalse(selectReq.Equals(selectRsp));
        }
コード例 #2
0
ファイル: SelectReq.cs プロジェクト: hpavolot/hsms-protocol
        public void Should_FailEqualityForDifferetObjectTypes()
        {
            var selectReq = new SelectReq(1, 2);
            var obj       = "test";

            Assert.IsFalse(selectReq.Equals(obj));
        }
コード例 #3
0
ファイル: SelectReq.cs プロジェクト: hpavolot/hsms-protocol
        public void Should_BeEqualIfSelectReqsEqual()
        {
            var selectReq  = new SelectReq(1, 2);
            var selectReq2 = new SelectReq(1, 2);

            Assert.IsTrue(selectReq.Equals(selectReq2));
        }
コード例 #4
0
ファイル: SelectReq.cs プロジェクト: hpavolot/hsms-protocol
        public void Should_FailEqualityForDifferentContext()
        {
            var selectReq  = new SelectReq(1, 1);
            var selectReq2 = new SelectReq(1, 2);

            Assert.IsFalse(selectReq.Equals(selectReq2));
        }
コード例 #5
0
ファイル: SelectReq.cs プロジェクト: hpavolot/hsms-protocol
        public void Should_FailEqualityForNull()
        {
            var selectReq = new SelectReq(1, 2);

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