public void GivenWindowsTraits_AndCaseSensitiveFileSystemWithNoDuplicates_ShouldNotThrow() { var traits = new WindowsPlatformTraits(); var action = new Action(() => { traits.PreValidateFileList(this.noDuplicates); }); action.Should().NotThrow <DuplicateEntryException>(); }
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); }