mirror of
https://github.com/jcreek/Creek.FileRepository.git
synced 2026-09-10 22:13:49 +00:00
feat(*): Add filename validity checks to SftpRepository
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user