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