public void DimensionConstructorTest2() { Dimension dimensionA = new Dimension(1, 2, 3, 4, 5, 6, 7, 8); Dimension dimensionB = new Dimension(dimensionA); Assert.IsTrue(dimensionA.Equals(dimensionB)); }
public void EqualsTest() { Dimension dimensionA; Dimension dimensionB; dimensionA = new Dimension(1, 2, 3, 4, 5, 6, 7, 8); dimensionB = new Dimension(1, 2, 3, 4, 5, 6, 7, 8); Assert.IsTrue(dimensionA.Equals(dimensionB)); dimensionB = new Dimension(0, 2, 3, 4, 5, 6, 7, 8); Assert.IsFalse(dimensionA.Equals(dimensionB)); dimensionB = new Dimension(1, 0, 3, 4, 5, 6, 7, 8); Assert.IsFalse(dimensionA.Equals(dimensionB)); dimensionB = new Dimension(1, 2, 0, 4, 5, 6, 7, 8); Assert.IsFalse(dimensionA.Equals(dimensionB)); dimensionB = new Dimension(1, 2, 3, 0, 5, 6, 7, 8); Assert.IsFalse(dimensionA.Equals(dimensionB)); dimensionB = new Dimension(1, 2, 3, 4, 0, 6, 7, 8); Assert.IsFalse(dimensionA.Equals(dimensionB)); dimensionB = new Dimension(1, 2, 3, 4, 5, 0, 7, 8); Assert.IsFalse(dimensionA.Equals(dimensionB)); dimensionB = new Dimension(1, 2, 3, 4, 5, 6, 0, 8); Assert.IsFalse(dimensionA.Equals(dimensionB)); dimensionB = new Dimension(1, 2, 3, 4, 5, 6, 7, 0); Assert.IsFalse(dimensionA.Equals(dimensionB)); }