public void test_copy() { CharTextProperty foo = new CharTextProperty("blah"), bar = foo.copy(); Assert.IsFalse(ReferenceEquals(foo, bar)); Assert.AreEqual(foo.value, bar.value); }
public void test_equals() { CharTextProperty foo = new CharTextProperty("blah"), bar = foo.copy(), baz = new CharTextProperty("bloh"); Assert.IsTrue(foo.equals(bar)); Assert.IsTrue(bar.equals(foo)); Assert.IsFalse(foo.equals(baz)); Assert.IsFalse(baz.equals(foo)); }