示例#1
0
        public void TriangleConstructorPoints()
        {
            Point cordinateOne = new Point(-5, 0);
            Point cordinateTwo = new Point(0, 5);
            Point cordinateThree = new Point(5, 0);

            Triangle cordinateTriangle = new Triangle(cordinateOne, cordinateTwo, cordinateThree);
            Assert.IsFalse(cordinateTriangle.isScalene());
        }
示例#2
0
 public void Scalene_AccurateValues()
 {
     Triangle myTriangle = new Triangle(10.0, 20.0, 30.0);
     Assert.IsTrue(myTriangle.isScalene());
 }
示例#3
0
 public void Scalene_ValueOfZero()
 {
     Triangle myTriangle = new Triangle(0, 0, 0);
     Assert.IsFalse(myTriangle.isScalene());
 }