I implement a test class for unit tests in VS2013
Inside that class I define the following struct and list:
private struct TestCase
{
public string Statement { set; get; }
public string ExpectedStatement { set; get; }
public MyClass[] ContainedEntities;
public MyClass[] NonContainedEntities;
}
private List<TestCase> m_TestCases;
I want to initialize the m_TestCases
with 5 TestCase.
Ho do I do that? Implement Constructor?(once I read that implementing constructor for test class is bad idea).Use ClassInitialize
? but it is static....