public void DoubleAbcConstructor() { //Arrange Triangle t = new Triangle(1, 1, 1); //Act bool result = t.isEquilateral(); //Assert Assert.IsTrue(result); }
public void DoubleArrayConstructor() { //Arrange double[] sides = {1, 1, 1}; Triangle t = new Triangle(sides); //Act bool result = t.isEquilateral(); //Assert Assert.IsTrue(result); }
public void TriangleIsNotEquilateral() { //Arrange Triangle t = new Triangle(1, 2, 3); //Act bool result = t.isEquilateral(); //Assert Assert.IsFalse(result); }
public void TriangleIsEquilateral() { //Arrange Triangle t = new Triangle(1, 1, 1); //Act bool result = t.isEquilateral(); //Assert Assert.IsTrue(result); }