예제 #1
0
        public void DifferentTypesAreUnequal()
        {
            var bar = GeneratedId2.New();
            var foo = new IntId(23);

            //Assert.NotEqual(bar, foo); // does not compile
            Assert.NotEqual((object)bar, (object)foo);
        }
        public void CantCreateEmptyGeneratedId1()
        {
            var foo = new GeneratedId1();
            var bar = new GeneratedId2();

            //Assert.NotEqual(bar, foo); // does not compile
            Assert.NotEqual((object)bar, (object)foo);
        }