Esempio n. 1
0
        public void FahClientMessageIdentifier_AreNotSameObjectTypes()
        {
            object id1 = new FahClientMessageIdentifier("foo", new DateTime(2019, 1, 1));
            object id2 = "foo";

            Assert.IsFalse(id1.Equals(id2));
        }
Esempio n. 2
0
        public void FahClientMessageIdentifier_AreNotEqual()
        {
            var id1 = new FahClientMessageIdentifier("foo", new DateTime(2019, 1, 1));
            var id2 = new FahClientMessageIdentifier("bar", new DateTime(2019, 1, 1));

            Assert.IsFalse(id1.Equals(id2));
        }
Esempio n. 3
0
        public void FahClientMessageIdentifier_ObjectDoesNotEqualNull()
        {
            object id1 = new FahClientMessageIdentifier("foo", new DateTime(2019, 1, 1));
            object id2 = null;

            Assert.IsFalse(id1.Equals(id2));
        }
Esempio n. 4
0
        public void FahClientMessageIdentifier_AreEqualObjects()
        {
            object id1 = new FahClientMessageIdentifier("foo", new DateTime(2019, 1, 1));
            object id2 = new FahClientMessageIdentifier("foo", new DateTime(2019, 1, 1));

            Assert.IsTrue(id1.Equals(id2));
        }