Пример #1
0
 public void ExecutesSuiteTearDownLast()
 {
     var folders = new FolderTestModel();
     folders.MakeFile("in\\suiteteardown.html", "<table><tr><td>fixture</td></tr></table>");
     folders.MakeFile("in\\zzzz.html", "<table><tr><td>fixture</td></tr></table>");
     var config = new Configuration();
     config.GetItem<Settings>().InputFolder = "in";
     config.GetItem<Settings>().OutputFolder = "out";
     var runner = new SuiteRunner(config, new NullReporter());
     runner.Run(new StoryTestFolder(config, folders), string.Empty);
     int tearDown = folders.FileContent("out\\reportIndex.html").IndexOf("suiteteardown.html");
     int otherFile = folders.FileContent("out\\reportIndex.html").IndexOf("zzzz.html");
     Assert.IsTrue(otherFile < tearDown);
 }
Пример #2
0
 public void SetUp()
 {
     _folderModel = new FolderTestModel();
 }