public void ElementEqualsSetNegativeTest() { var se1 = new SetElement <int>(1); var s1 = new Set <int>(); Assert.IsFalse(se1.Equals(s1)); }
public void ElementEqualsNegativeTest() { var se1 = new SetElement <int>(1); var se2 = new SetElement <int>(2); Assert.IsFalse(se1.Equals(se2)); }
public void ElementEqualsPositiveTest() { var se1 = new SetElement <int>(1); var se2 = new SetElement <int>(1); Assert.IsTrue(se1.Equals(se2)); }
public void VertexElementEqualityPositiveTest() { var vertex1 = new Vertex(); var el1 = new SetElement <Vertex>(vertex1); var el2 = new SetElement <Vertex>(vertex1); Assert.IsTrue(el1.Equals(el2)); }
public void VertexElementEqualityNegativeTest() { var vertex1 = new Vertex(); var el1 = new SetElement <Vertex>(vertex1); var vertex2 = new Vertex(); var el2 = new SetElement <Vertex>(vertex2); Assert.IsFalse(el1.Equals(el2)); }
public void EdgeElementEqualityPositiveTest() { var vertex1 = new Vertex(); var vertex2 = new Vertex(); var el1 = new SetElement <Tuple2 <Vertex, Vertex> >(new Tuple2 <Vertex, Vertex>(vertex1, vertex2)); var el2 = new SetElement <Tuple2 <Vertex, Vertex> >(new Tuple2 <Vertex, Vertex>(vertex1, vertex2)); Assert.IsTrue(el1.Equals(el2)); }