示例#1
0
        public void GetFolderByName_FolderInFinalSubFolder_IsFoundByNameWithSubDirsExplicit()
        {
            // Arrange
            string folderName = "sub02";

            // Act
            ITestSourceItem testSourcesItem = TestSource.GetFolderByName(folderName, true);

            // Assert
            testSourcesItem.Should().NotBeNull();
            testSourcesItem.Name.Should().Be(folderName);
        }
示例#2
0
        public void GetFolderByName_FolderInRoot_IsFoundByNameWithoutSubDirs()
        {
            // Arrange
            string folderName = "FileContentTests";

            // Act
            ITestSourceItem testSourcesItem = TestSource.GetFolderByName(folderName, false);

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