Beispiel #1
0
        public void CheckSides_for_Not_int_Number()
        {
            double a        = 1.4;
            double b        = 2;
            double c        = 3;
            bool   expected = true;

            TriangleClass obj    = new TriangleClass();
            bool          actual = obj.checkSides(a, b, c);

            Assert.AreEqual(expected, actual);
        }
Beispiel #2
0
        public void CheckSides_for_Correct_Numbers()
        {
            double a        = 3;
            double b        = 5;
            double c        = 7;
            bool   expected = true;

            TriangleClass obj    = new TriangleClass();
            bool          actual = obj.checkSides(a, b, c);

            Assert.AreEqual(expected, actual);
        }
Beispiel #3
0
        public void CheckSides_for_Not_int_Number_and_Negative_and_Zero()
        {
            double a        = 0;
            double b        = 2.7;
            double c        = -3.1;
            bool   expected = false;

            TriangleClass obj    = new TriangleClass();
            bool          actual = obj.checkSides(a, b, c);

            Assert.AreEqual(expected, actual);
        }
Beispiel #4
0
        public void CheckSides_for_Zero_Number()
        {
            double a        = 0;
            double b        = 10;
            double c        = 4;
            bool   expected = false;


            TriangleClass obj    = new TriangleClass();
            bool          actual = obj.checkSides(a, b, c);

            Assert.AreEqual(expected, actual);
        }