public void GenerateFetFileTest() { var model = new TestDataModel().MockDataModel; var inputGenerator = new FetInputGenerator(model.Object); Directory.CreateDirectory("testdir"); var fetPath = inputGenerator.GenerateFetFile("testdir"); Assert.IsTrue(File.Exists(fetPath)); // Clean up Directory.Delete("testdir", true); }
public void GetActivitiesTest() { var model = new TestDataModel().MockDataModel; var inputGenerator = new FetInputGenerator(model.Object); // Generate FET file Directory.CreateDirectory("testdir"); inputGenerator.GenerateFetFile("testdir"); Directory.Delete("testdir", true); // Verify that the activities are generated Assert.IsTrue(inputGenerator.GetActivities().Count > 0); }