Example #1
0
        public void TriangleCheck_5and3and6_returnedTrue()
        {
            float a        = 0;
            float b        = 3;
            float c        = 6;
            bool  expected = true;

            TriangleC t      = new TriangleC();
            bool      actual = t.TriangleCheck(a, b, c);

            Assert.AreEqual(expected, actual);
        }
Example #2
0
        public void TriangleCheck_10and0and0_returnedFalse()
        {
            float a        = 10;
            float b        = 0;
            float c        = 0;
            bool  expected = false;

            TriangleC t      = new TriangleC();
            bool      actual = t.TriangleCheck(a, b, c);

            Assert.AreEqual(expected, actual);
        }
Example #3
0
        public void TriangleCheck_5and5andMinus5_returnedFalse()
        {
            float a        = 5;
            float b        = 5;
            float c        = -5;
            bool  expected = false;

            TriangleC t      = new TriangleC();
            bool      actual = t.TriangleCheck(a, b, c);

            Assert.AreEqual(expected, actual);
        }