Example #1
0
        public override bool Equals(object obj)
        {
            Person2 other = obj as Person2;

            if (null == other)
            {
                return(false);
            }
            return(CFHelper.AreEqual(_name, other._name));
        }
 public static void AssertContains(IObjectSet actual, object expected)
 {
     actual.Reset();
     while (actual.HasNext())
     {
         object next = actual.Next();
         if (CFHelper.AreEqual(next, expected))
         {
             return;
         }
     }
     Assert.Fail("Expected item: " + expected);
 }