예제 #1
0
        public void AcuteTest()
        {
            Shapes.Triangle triangle = new Shapes.Triangle();
            string          result   = triangle.IdentifyTriagleType(10, 10, 10);

            Assert.AreEqual("acute", result);
        }
예제 #2
0
        public void RightTest()
        {
            Shapes.Triangle triangle = new Shapes.Triangle();
            string          result   = triangle.IdentifyTriagleType(4, 3, 5);

            Assert.AreEqual("right", result);
        }
예제 #3
0
        public void ObtuseTest()
        {
            Shapes.Triangle triangle = new Shapes.Triangle();
            string          result   = triangle.IdentifyTriagleType(6, 6, 10);

            Assert.AreEqual("obtuse", result);
        }
예제 #4
0
        public void ErrorTest()
        {
            Shapes.Triangle triangle = new Shapes.Triangle();
            string          result   = triangle.IdentifyTriagleType(1000, 10, 10);

            Assert.AreEqual("error", result);
        }