예제 #1
0
        public void Breakdown_Delete_Test()
        {
            Breakdown_Maintenance b = new Breakdown_Maintenance();        // create obj b
            bool actual             = b.deletevalues("4");                //enter all right values in deletevalue method.
            bool expected           = true;                               //returned bool value from method deltevalues method

            Assert.AreEqual(expected, actual, "You did something wrong"); // expected is true  whereas actual should match
        }
예제 #2
0
        public void Breakdown_view_Testfail()
        {
            Breakdown_Maintenance b = new Breakdown_Maintenance();        // create obj b
            bool actual             = b.view("");                         //enter all wrong values in deletevalue method.
            bool expected           = false;                              //returned bool value from method deltevalues method

            Assert.AreEqual(expected, actual, "You did something wrong"); // expected is true  whereas actual is should match
        }
예제 #3
0
        public void Breakdown_add_Test()
        {
            Breakdown_Maintenance b = new Breakdown_Maintenance();                               // create obj b
            bool acutal             = b.savevalues("4", "test", "test", "test", "test", "test"); //This is the text i m updating in database
            bool expected           = true;                                                      //returned bool value from method savevalues method

            Assert.AreEqual(expected, acutal, "You did something wrong");                        // expected is true  whereas actual is should match
        }