Exemplo n.º 1
0
        public void triangle_1000and3500and5200_false_expected()
        {
            //arange
            int  a        = 1000;
            int  b        = 3500;
            int  c        = 5200;
            bool expected = false;

            //act
            ConsoleApp1.ConsoleApp q = new ConsoleApp1.ConsoleApp();
            bool actual = q.triangle(a, b, c);

            //assert
            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 2
0
        public void triangle_54and123and46_false_expected()
        {
            //arange
            int  a        = 54;
            int  b        = 123;
            int  c        = 46;
            bool expected = false;

            //act
            ConsoleApp1.ConsoleApp q = new ConsoleApp1.ConsoleApp();
            bool actual = q.triangle(a, b, c);

            //assert
            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 3
0
        public void triangle_2and2and2_true_expected()
        {
            //arange
            int  a        = 2;
            int  b        = 2;
            int  c        = 2;
            bool expected = true;

            //act
            ConsoleApp1.ConsoleApp q = new ConsoleApp1.ConsoleApp();
            bool actual = q.triangle(a, b, c);

            //assert
            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 4
0
        public void triangle_minus()
        {
            //arange
            int  a        = -5;
            int  b        = -2;
            int  c        = -1;
            bool expected = false;

            //act
            ConsoleApp1.ConsoleApp q = new ConsoleApp1.ConsoleApp();
            bool actual = q.triangle(a, b, c);

            //assert
            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 5
0
        public void Triangle_4and5and7_true_returned()
        {
            //arange
            int  a        = 4;
            int  b        = 5;
            int  c        = 7;
            bool expected = true;

            //act
            ConsoleApp1.ConsoleApp q = new ConsoleApp1.ConsoleApp();
            bool actual = q.triangle(a, b, c);

            //assert
            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 6
0
        public void triangle_34and53and5_false_expected()
        {
            //arange
            int  a        = 34;
            int  b        = 53;
            int  c        = 5;
            bool expected = false;

            //act
            ConsoleApp1.ConsoleApp q = new ConsoleApp1.ConsoleApp();
            bool actual = q.triangle(a, b, c);

            //assert
            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 7
0
        public void Triangle_10and4and1_returned()
        {
            //arange
            int  a        = 10;
            int  b        = 4;
            int  c        = 1;
            bool expected = false;

            //act
            ConsoleApp1.ConsoleApp q = new ConsoleApp1.ConsoleApp();
            bool actual = q.triangle(a, b, c);

            //assert
            Assert.AreEqual(expected, actual);
        }