private static ISigo Select(ISigo r, ISigo a, ISigo b) { if (a.IsFrozen() && Sigo.Equals(r, a)) { return(a); } if (b.IsFrozen() && Sigo.Equals(r, b)) { return(b); } return(r); }
public void Overrided_equal_object() { var list = new List <ISigo> { Sigo.From("a"), Sigo.From("a"), Sigo.From("b"), Sigo.Create(3, "k", "a"), Sigo.Create(3, "k", "a"), Sigo.Create(3, "k", "b") }; foreach (var a in list) { foreach (var b in list) { SigoAssert.Equal(Sigo.Equals(a, b), a.Equals((object)b)); } } }