public void IsDirectory_WhenItIsADirectory_ShouldReturnTrue() { // Arrange var path = XmlPathUtility.GetTestXmlFolderPath(); // Act var result = _fileSystemManager.IsDirectory(path); // Assert Assert.IsTrue(result); }
public void EnumerateFiles_WhenThereAre2FilesInDirectory_ShouldListHas2Items() { // Arrange var path = XmlPathUtility.GetTestXmlFolderPath(); // Act var fileList = _fileSystemManager.EnumerateFiles(path); // Assert Assert.AreEqual(2, fileList.Count()); }
public void CreateOutputTemplateFactory_WhenThereAreMultipleFileInDirectory_ShouldReturnMultipleTestRunOutputTemplateFactory() { // Arrange var path = XmlPathUtility.GetTestXmlFolderPath(); _fileSystemManager = new DefaultFileSystemManager(); OutputTemplateManager outputTemplateManager = CreateOutputTemplateManager(path); // Act IOutputTemplateFactory factory = outputTemplateManager.CreateOutputTemplateFactory(); // Assert Assert.AreEqual(typeof(MultipleTestRunOutputTemplateFactory), factory.GetType()); }