-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #419 from y-iihoshi/migrate-folder-dialog
Fix to use WPF OpenFolderDialog
- Loading branch information
Showing
14 changed files
with
381 additions
and
445 deletions.
There are no files selected for viewing
24 changes: 0 additions & 24 deletions
24
ThScoreFileConverter.Tests/Interactivity/FolderBrowserDialogActionResultTests.cs
This file was deleted.
Oops, something went wrong.
73 changes: 0 additions & 73 deletions
73
ThScoreFileConverter.Tests/Interactivity/FolderBrowserDialogActionTests.cs
This file was deleted.
Oops, something went wrong.
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
24 changes: 24 additions & 0 deletions
24
ThScoreFileConverter.Tests/Interactivity/OpenFolderDialogActionResultTests.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,24 @@ | ||
using System; | ||
using ThScoreFileConverter.Interactivity; | ||
|
||
namespace ThScoreFileConverter.Tests.Interactivity; | ||
|
||
[TestClass] | ||
public class OpenFolderDialogActionResultTests | ||
{ | ||
[DataTestMethod] | ||
[DataRow("")] | ||
[DataRow(@"path\to\some\folder")] | ||
public void OpenFolderDialogActionResultTest(string path) | ||
{ | ||
var result = new OpenFolderDialogActionResult(path); | ||
|
||
Assert.AreEqual(path, result.FolderName); | ||
} | ||
|
||
[TestMethod] | ||
public void OpenFolderDialogActionResultTestNull() | ||
{ | ||
_ = Assert.ThrowsException<ArgumentNullException>(() => new OpenFolderDialogActionResult(null!)); | ||
} | ||
} |
Oops, something went wrong.