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