public void Equals_Null_False() { var x = new MultiText(); x["ws"] = "test"; Assert.IsFalse(x.Equals(null)); }
public void Equals_DifferentWritingSystems_False() { var x = new MultiText(); x["ws"] = "test"; var y = new MultiText(); y["ws1"] = "test"; Assert.IsFalse(x.Equals(y)); Assert.IsFalse(y.Equals(x)); }
public void Equals_DifferentValues_False() { var x = new MultiText(); x["ws"] = "test"; var y = new MultiText(); y["ws"] = "test1"; Assert.IsFalse(x.Equals(y)); Assert.IsFalse(y.Equals(x)); }
public void Equals_SameContent_True() { var x = new MultiText(); x["ws"] = "test"; var y = new MultiText(); y.MergeIn(x); Assert.IsTrue(x.Equals(y)); Assert.IsTrue(y.Equals(x)); }
public void ObjectEquals_SameContent_True() { var x = new MultiText(); x["ws"] = "test"; MultiText y = new MultiText(); y.MergeIn(x); Assert.IsTrue(x.Equals((object)y)); Assert.IsTrue(y.Equals((object)x)); }
public void ObjectEquals_DifferentEmbeddedXmlElements_False() { var x = new MultiText(); x.EmbeddedXmlElements.Add("string1"); var y = new MultiText(); y.EmbeddedXmlElements.Add("string2"); Assert.IsFalse(x.Equals((object)y)); Assert.IsFalse(y.Equals((object)x)); }
public void Equals_DifferentNumberOfForms_False() { var x = new MultiText(); x["ws"] = "test"; x["ws2"] = "test"; var y = new MultiText(); y["ws"] = "test"; Assert.IsFalse(x.Equals(y)); Assert.IsFalse(y.Equals(x)); }
public void Equals_FirstHasMoreEmbeddedXmlElements_False() { var x = new MultiText(); x.EmbeddedXmlElements.Add("string1"); x.EmbeddedXmlElements.Add("string2"); var y = new MultiText(); y.EmbeddedXmlElements.Add("string1"); Assert.IsFalse(x.Equals(y)); Assert.IsFalse(y.Equals(x)); }
public bool Equals(LexEntry other) { if (other == null) { return(false); } if (!_lexicalForm.Equals(other._lexicalForm)) { return(false); } if (!_orderForRoundTripping.Equals(other._orderForRoundTripping)) { return(false); } if (!_orderInFile.Equals(other._orderInFile)) { return(false); } if (!_senses.SequenceEqual(other._senses)) { return(false); } if (!_variants.SequenceEqual(other._variants)) { return(false); } if (!_notes.SequenceEqual(other._notes)) { return(false); } if (!_pronunciations.SequenceEqual(other._pronunciations)) { return(false); } if (!_etymologies.SequenceEqual(other._etymologies)) { return(false); } if (!base.Equals(other)) { return(false); } return(true); }
public void Equals_Identity_True() { var x = new MultiText(); Assert.IsTrue(x.Equals(x)); }
public void ObjectEquals_Identity_True() { var x = new MultiText(); Assert.IsTrue(x.Equals((object)x)); }