コード例 #1
0
        public void TestEquatableLong()
        {
            var uidl = new PopUniqueIdListing(1L, "xxx");

              Assert.IsTrue (uidl.Equals(1L));
              Assert.IsFalse(uidl.Equals(0L));
        }
コード例 #2
0
        public void TestEquatableString()
        {
            var uidl = new PopUniqueIdListing(1L, "xxx");

              Assert.IsTrue (uidl.Equals("xxx"));
              Assert.IsFalse(uidl.Equals("xxX"));
              Assert.IsFalse(uidl.Equals("XXX"));
              Assert.IsFalse(uidl.Equals("unique-id"));
        }