feat(*): Add filename validity checks to SftpRepository

This commit is contained in:
Josh Creek
2021-08-30 18:56:54 +01:00
parent d80cc8237d
commit 4600ebf82b
3 changed files with 65 additions and 1 deletions
+6
View File
@@ -20,6 +20,12 @@ namespace UnitTests
{
}
[Test]
public async Task ShouldNotCreateAFileWithAnInvalidFilename()
{
Assert.That(() => CreateTestFile("create><invalid?/test.txt"), Throws.TypeOf<ArgumentException>());
}
[Test]
public async Task ShouldCreateAFileWithoutThrowing()
{