public void TestNotEqual() { var a = new TypeIdentity { MsgType = "a", EventType = "" }; var b = new TypeIdentity { MsgType = "a", EventType = null }; Assert.NotEqual(a, b); Assert.NotEqual(a.GetHashCode(), b.GetHashCode()); }