public void CreateTestRuns_WhenThereAreTwoFilePaths_ShouldTwoTestRun() { // Arrange OutputTemplateManager outputTemplateManager = CreateOutputTemplateManager(); var filePaths = new List <string> { "a", "b" }; // Act var testRuns = outputTemplateManager.CreateTestRuns(filePaths); // Arrange Assert.AreEqual(2, testRuns.Count); }
public void CreateTestRuns_WhenThereIsOneFilePath_ShouldTestRunResultParserReceivedOnce() { // Arrange OutputTemplateManager outputTemplateManager = CreateOutputTemplateManager(); var filePath = "a"; var filePaths = new List <string> { filePath }; // Act var testRuns = outputTemplateManager.CreateTestRuns(filePaths); // Arrange _testRunResultParser.Received(1).ParseXml(filePath); }