-
Notifications
You must be signed in to change notification settings - Fork 4
TestCaseDerived
Mehdi Mohammadi edited this page Dec 30, 2013
·
1 revision
We do some changes in test-cases in order to conform to NUnit rules:
- Adding [NUnit.Framework.TestFixture] to test classes
- Adding [NUnit.Framework.Test] to test methods
- Adding [NUnit.Framework.SetUp] and [NUnit.Framework.TearDown] to setUp and tearDown methods
- Removing parametered constructors in test class
[Java]
public class Test extends TestCase
{
public Test(int arg1)
{
}
public vois setUp()
{
}
public void testMethod()
{
}
public void main()
{
}
}
[C#]
[NUnit.Framework.TestFixture()]
public class Test : TestCase
{
[NUnit.Framework.TestFixture()]
public vois setUp()
{
}
[NUnit.Framework.TestFixture()]
public void testMethod()
{
}
}