Ejemplo n.º 1
0
        public void check_forinput2_2_2expectedResultEqualsEquilateral()
        {
            //Arrange
            int    int1           = 2;
            int    int2           = 2;
            int    int3           = 2;
            string expectedResult = "Equilateral";

            TriangleSolver t = new hinaliA2QA.TriangleSolver();

            //Act
            string result = t.Analyze(int1, int2, int3);

            //Assert
            Assert.AreEqual(result, expectedResult);
        }
Ejemplo n.º 2
0
        public void check_forinput7_4_3expectedResultEqualsScalene()
        {
            //Arrange
            int    int1           = 7;
            int    int2           = 4;
            int    int3           = 3;
            string expectedResult = "Scalene";

            TriangleSolver t = new hinaliA2QA.TriangleSolver();

            //Act
            string result = t.Analyze(int1, int2, int3);

            //Assert
            Assert.AreEqual(result, expectedResult);
        }
Ejemplo n.º 3
0
        public void check_forinput4_7_4expectedResultEqualsIsosceles()
        {
            //Arrange
            int    int1           = 4;
            int    int2           = 7;
            int    int3           = 4;
            string expectedResult = "Isosceles";

            TriangleSolver t = new hinaliA2QA.TriangleSolver();

            //Act
            string result = t.Analyze(int1, int2, int3);

            //Assert
            Assert.AreEqual(result, expectedResult);
        }