forked from chucknorris/roundhouse
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue chucknorris#355: Replace invalid chars in path (chucknorris#356)
- Loading branch information
Showing
4 changed files
with
55 additions
and
2 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
product/roundhouse.tests/infrastructure/filesystem/KnownFolders.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using NUnit.Framework; | ||
using roundhouse.consoles; | ||
using roundhouse.infrastructure.app; | ||
using roundhouse.infrastructure.app.builders; | ||
using roundhouse.infrastructure.filesystem; | ||
|
||
namespace roundhouse.tests.infrastructure.filesystem | ||
{ | ||
[TestFixture()] | ||
public class KnownFolders | ||
{ | ||
[Test()] | ||
public void should_never_contain_colons() | ||
{ | ||
var config = new DefaultConfiguration | ||
{ | ||
DatabaseName = "DaDatabase", | ||
OutputPath = "/tmp/rh", | ||
ServerName = "tcp:database.domain.domain" | ||
}; | ||
var fileSystem = new DotNetFileSystemAccess(config); | ||
|
||
var known_folders = KnownFoldersBuilder.build(fileSystem, config); | ||
|
||
StringAssert.DoesNotContain(":", known_folders.change_drop.folder_full_path); | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters