I've created unit tests of my WinForms using MS Visual Studio 2008. None of my tests have been approved. All of them (0/42 tests) resulted into some kind of failure described as follows:-
System.NullReferenceException: Object reference not set to an instance of an object.
Assert.Inconclusive failed. A method that does not return a value cannot be verified.
Without running these tests, the normal output produced didn't seem to throw any errors. I'm completely new to testing so I have no idea how to handle these errors.
/// <summary>
///A test for txtTel_Leave
///</summary>
[TestMethod()]
[DeploymentItem("Payroll master.exe")]
public void txtTel_LeaveTest()
{
emp_Accessor target = new emp_Accessor(); // TODO: Initialize to an appropriate value
object sender = null; // TODO: Initialize to an appropriate value
EventArgs e = null; // TODO: Initialize to an appropriate value
target.txtTel_Leave(sender, e);
Assert.Inconclusive("A method that does not return a value cannot be verified.");
}