public void EqualsAndHashCodeTest() { var te_a1 = new TreeElement<string, string>("a"); var te_a2 = new TreeElement<string, string>("a"); var te_b = new TreeElement<string, string>("b"); var te_node = new TreeElement<string, string>(); te_a1.Is(te_a1); te_a1.GetHashCode().Is(te_a1.GetHashCode()); te_a1.Is(te_a2); te_a1.GetHashCode().Is(te_a2.GetHashCode()); te_a1.IsNot(te_b); te_a1.IsNot(te_node); }