public void when_getting_file_for_nonnegative_index_and_version_appends_value_and_provided_version()
 {
     var strategy = new VersionedPatternFileNamingStrategy("path", "prefix-");
     Assert.AreEqual("path" + Path.DirectorySeparatorChar + "prefix-000001.000007", strategy.GetFilenameFor(1, 7));
 }
 public void when_getting_file_for_negative_version_throws_argumentoutofrangeexception()
 {
     var strategy = new VersionedPatternFileNamingStrategy("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_zero_version()
 {
     var strategy = new VersionedPatternFileNamingStrategy("path", "prefix-");
     Assert.AreEqual("path" + Path.DirectorySeparatorChar + "prefix-000001.000000", strategy.GetFilenameFor(1, 0));
 }