public void EqualsVectorDrawingTest5() { VectorDrawing target = new VectorDrawing() { Vectors = new ColoredTriangle[] { new ColoredTriangle() { Brush = Brushes.Black, Vertices = new Point[] { new Point(0, 0), new Point(1, 1), new Point(0, 1) } } } }; VectorDrawing other = new VectorDrawing() { Vectors = new ColoredTriangle[] { new ColoredTriangle() { Brush = Brushes.Black, Vertices = new Point[] { new Point(0, 0), new Point(1, 1), new Point(0, 1) } }, new ColoredTriangle() { Brush = Brushes.Black, Vertices = new Point[] { new Point(0, 0), new Point(1, 1), new Point(0, 1) } }, new ColoredTriangle() { Brush = Brushes.Black, Vertices = new Point[] { new Point(0, 0), new Point(1, 1), new Point(0, 1) } } } }; bool expected = false; bool actual; actual = target.Equals(other); Assert.AreEqual(expected, actual); }
public void EqualsTest() { VectorDrawing target = new VectorDrawing(); object obj = null; bool expected = false; bool actual; actual = target.Equals(obj); Assert.AreEqual(expected, actual); }