public void Should_return_file_2_2_for_file_1_2_when_iterateAfterExtension_false() { // Arrange var expected = "file.2.2"; var filename = "file.1.2"; // Act var result = FilenameIterator.Iterate(filename, false); // Assert Assert.That(result, Is.EqualTo(expected)); }
public void Should_return_file_txt_2_for_file_txt_1_when_iterateAfterExtension() { // Arrange var expected = "file.txt.2"; var filename = "file.txt.1"; // Act var result = FilenameIterator.Iterate(filename, true); // Assert Assert.That(result, Is.EqualTo(expected)); }