Пример #1
0
        public void TestIsNotTriangle()
        {
            // validate that it cannot form Triangle
            int  sideA = 90, sideB = 40, sideC = 40;
            bool ans      = TriangleSolver.IsTriangle(sideA, sideB, sideC);
            bool validate = (sideA + sideB <= sideC || sideA + sideC <= sideB || sideB + sideC <= sideA) ? false : true;

            Assert.AreEqual(ans, validate);
        }