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