public void component_Update_Test() { Component_info c = new Component_info(); // create obj c bool actual = c.updatevalues("4", "test", "test", "test", "test"); //enter all right values in updatevalue method. bool expected = true; //returned bool value from method updatevalues method Assert.AreEqual(expected, actual, "You did something wrong"); // expected is true whereas actual is should match }