Ejemplo n.º 1
0
        public void EqualsWithUnequalObjectTypes()
        {
            var first = new GroupImportMap(
                "c",
                new InsertVertex(1),
                new List <ImportRegistrationId>
            {
                new ImportRegistrationId(typeof(string), 0, "aa")
            });
            var second = new object();

            Assert.IsFalse(first.Equals(second));
        }
Ejemplo n.º 2
0
        public void EqualsWithEqualObjects()
        {
            var first = new GroupImportMap(
                "c",
                new InsertVertex(1),
                new List <ImportRegistrationId>
            {
                new ImportRegistrationId(typeof(string), 0, "aa")
            });
            object second = new GroupImportMap(
                "c",
                new InsertVertex(2),
                new List <ImportRegistrationId>
            {
                new ImportRegistrationId(typeof(string), 1, "aa")
            });

            Assert.IsTrue(first.Equals(second));
        }