Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# nunit initialize variables

[TestFixture]
public class MyTestClass
{
  	private int _x;
  
    [SetUp]
    public void Init() {
    	_x = 0;
    }

    // Tests omitted
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #nunit #initialize #variables
ADD COMMENT
Topic
Name
5+1 =