Example #1
0
 public void CheckFileName_OnExistingFileIncorrectFormat()
 {
     ArgumentParser.CheckFileName("input.pdf").Should()
     .BeEquivalentTo(Result.Fail <string>(@"Not supported format. Expected: .txt\.docx"));
 }
Example #2
0
 public void CheckFileName_OnExistingFileDocxFormat()
 {
     ArgumentParser.CheckFileName("input.docx").Should()
     .BeEquivalentTo(Result.Ok("input.docx"));
 }
Example #3
0
 public void CheckFileName_OnNotExistingFile()
 {
     ArgumentParser.CheckFileName("NotExist.txt").Should()
     .BeEquivalentTo(Result.Fail <string>("Input file not found"));
 }