public void when_getting_file_for_nonnegative_index_and_version_appends_just_value()
 {
     var strategy = new PrefixFileNamingStrategy("path", "prefix-");
     Assert.AreEqual("path" + Path.DirectorySeparatorChar + "prefix-1", strategy.GetFilenameFor(1, 7));
 }
 public void when_getting_file_for_negative_version_throws_argumentoutofrangeexception()
 {
     var strategy = new PrefixFileNamingStrategy("Path", "prefix-");
     Assert.Throws<ArgumentOutOfRangeException>(() => strategy.GetFilenameFor(0, -1));
 }
 public void when_getting_file_for_positive_index_and_no_version_appends_index_to_name_with_no_version()
 {
     var strategy = new PrefixFileNamingStrategy("path", "prefix-");
     Assert.AreEqual("path" + Path.DirectorySeparatorChar + "prefix-1", strategy.GetFilenameFor(1));
 }