예제 #1
0
        public void GivenWindowsTraits_AndCaseSensitiveFileSystemWithNoDuplicates_ShouldNotThrow()
        {
            var traits = new WindowsPlatformTraits();

            var action = new Action(() => { traits.PreValidateFileList(this.noDuplicates); });

            action.Should().NotThrow <DuplicateEntryException>();
        }
예제 #2
0
        public void GivenWindowsTraits_AndCaseSensitiveFileSystemWithDuplicateFilesAndDirectories_ShouldThrow()
        {
            var traits = new WindowsPlatformTraits();

            var action = new Action(() => { traits.PreValidateFileList(this.duplicateFilesAndDirectories); });

            action.Should().ThrowExactly <DuplicateEntryException>().And.DuplicateDirectories.Count.Should().Be(2);
        }