public void Equals_DifferentValues_False() { MultiTextBase x = new MultiTextBase(); x["ws"] = "test"; MultiTextBase y = new MultiTextBase(); y["ws"] = "test1"; Assert.IsFalse(x.Equals(y)); Assert.IsFalse(y.Equals(x)); }
public void Equals_DifferentWritingSystems_False() { MultiTextBase x = new MultiTextBase(); x["ws"] = "test"; MultiTextBase y = new MultiTextBase(); y["ws1"] = "test"; Assert.IsFalse(x.Equals(y)); Assert.IsFalse(y.Equals(x)); }
public void Equals_Identity_True() { MultiTextBase x = new MultiTextBase(); Assert.IsTrue(x.Equals(x)); }
public void Equals_SameContent_True() { MultiTextBase x = new MultiTextBase(); x["ws"] = "test"; MultiTextBase y = new MultiTextBase(); y.MergeIn(x); Assert.IsTrue(x.Equals(y)); Assert.IsTrue(y.Equals(x)); }
public void Equals_DifferentNumberOfForms_False() { MultiTextBase x = new MultiTextBase(); x["ws"] = "test"; x["ws2"] = "test"; MultiTextBase y = new MultiTextBase(); y["ws"] = "test"; Assert.IsFalse(x.Equals(y)); Assert.IsFalse(y.Equals(x)); }
public void Equals_Null_False() { MultiTextBase x = new MultiTextBase(); x["ws"] = "test"; Assert.IsFalse(x.Equals(null)); }
public void ObjectEquals_Identity_True() { MultiTextBase x = new MultiTextBase(); Assert.IsTrue(x.Equals((object) x)); }