Newbie NUnit Help

I have NUnit 2.4.1 installed and have a class with 2 test functions but the test runner lists only one test and does not show the function names of the tests. Here is the code.

namespace KioskTests
{

public class MyTests
{
private int pvDocumentID;
private AvidKioskDM KioskDM;



public int NewDocument()
{
pvDocumentID = -1;
Assert.IsNotNull(KioskDM);
// pvDocumentID = KioskDM.GetNewDocID();
return 0;
}


public int Document()
{
pvDocumentID = -1;
Assert.AreEqual(pvDocumentID, 500);
Assert.IsNotNull(KioskDM);
// pvDocumentID = KioskDM.GetNewDocID();
return 0;
}
}
}

2 comments
Comment actions Permalink

John,
I believe that you need to have your methods return void. Try that and see if that fixes it.

0
Comment actions Permalink

That was it thank you.

0

Please sign in to leave a comment.