void ignores <T>() { var type = typeof(T); var files = new SystemExtensionsGenerator().Generate(new [] { type }); files.Length.should_be(0); }
void generates <T>(string code) { var type = typeof(T); var files = new SystemExtensionsGenerator().Generate(new [] { type }); files.Length.should_be(1); var file = files[0]; file.fileName.should_be(type + classSuffix); file.fileContent.should_be(code); }
void generates <T>(string expectedCode) { expectedCode = expectedCode.ToUnixLineEndings(); var type = typeof(T); var files = new SystemExtensionsGenerator().Generate(new [] { type }); files.Length.should_be(1); var file = files[0]; file.fileName.should_be(type + classSuffix); file.fileContent.should_be(expectedCode); }