public void Should_Return_New_Collection_When_Removing_Paths() { // Given var collection = new DirectoryPathCollection(new DirectoryPath[] { "A", "B", "C" }, new PathComparer(false)); // When var result = collection - new DirectoryPath[] { "B", "C" }; // Then collection.ShouldNotBeSameAs(result); }
public void Should_Return_New_Collection_When_Adding_Path() { // Given var collection = new DirectoryPathCollection(new DirectoryPath[] { "A" }, new PathComparer(false)); // When var result = collection + new DirectoryPath("B"); // Then collection.ShouldNotBeSameAs(result); }