Пример #1
0
        public void GetFileByName_FileInFinalSubFolder_IsFoundByNameWithSubDirsImplicit()
        {
            // Arrange
            string fileName = "Sub2FolderBinFile.rar";
            // Act
            ITestSourceItem testSourcesItem = TestSource.GetFileByName(fileName, true);

            // Assert
            testSourcesItem.Should().NotBeNull();
            testSourcesItem.Name.Should().Be(fileName);
        }
Пример #2
0
        public void GetFileByName_FileInRoot_IsFoundByNameWithoutSubDirs()
        {
            // Arrange
            string fileName = "BinFile01.rar";

            // Act
            ITestSourceItem testSourcesItem = TestSource.GetFileByName(fileName, false);

            // Assert
            testSourcesItem.Should().NotBeNull();
            testSourcesItem.Name.Should().Be(fileName);
        }