public void Should_FailEqualityForDifferentMessageTypes() { var selectReq = new SelectReq(1, 2); var selectRsp = new SelectRsp(1, 2, 1); Assert.IsFalse(selectReq.Equals(selectRsp)); }
public void Should_FailEqualityForDifferetObjectTypes() { var selectReq = new SelectReq(1, 2); var obj = "test"; Assert.IsFalse(selectReq.Equals(obj)); }
public void Should_BeEqualIfSelectReqsEqual() { var selectReq = new SelectReq(1, 2); var selectReq2 = new SelectReq(1, 2); Assert.IsTrue(selectReq.Equals(selectReq2)); }
public void Should_FailEqualityForDifferentContext() { var selectReq = new SelectReq(1, 1); var selectReq2 = new SelectReq(1, 2); Assert.IsFalse(selectReq.Equals(selectReq2)); }
public void Should_FailEqualityForNull() { var selectReq = new SelectReq(1, 2); Assert.IsFalse(selectReq.Equals(null)); }