-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AppArgs test and fix debug flag (#1892)
- Loading branch information
1 parent
11ffe9f
commit 98efe06
Showing
7 changed files
with
46 additions
and
3 deletions.
There are no files selected for viewing
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
Explorer/Assets/Scripts/Global/AppArgs/Tests/AppArgs.Tests.asmref
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,3 @@ | ||
{ | ||
"reference": "GUID:da80994a355e49d5b84f91c0a84a721f" | ||
} |
3 changes: 3 additions & 0 deletions
3
Explorer/Assets/Scripts/Global/AppArgs/Tests/AppArgs.Tests.asmref.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
Explorer/Assets/Scripts/Global/AppArgs/Tests/AppArgsTests.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,21 @@ | ||
using NUnit.Framework; | ||
|
||
namespace Global.AppArgs.Tests | ||
{ | ||
public class AppArgsTest | ||
{ | ||
[Test] | ||
public void DebugArgFailTest() | ||
{ | ||
IAppArgs args = new ApplicationParametersParser(false, "-debug"); | ||
Assert.False(args.HasDebugFlag(), $"flags in args: {string.Join(", ", args.Flags())}"); | ||
} | ||
|
||
[Test] | ||
public void DebugArgContainsTest() | ||
{ | ||
IAppArgs args = new ApplicationParametersParser(false, "--debug"); | ||
Assert.True(args.HasDebugFlag(), $"flags in args: {string.Join(", ", args.Flags())}"); | ||
} | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
Explorer/Assets/Scripts/Global/AppArgs/Tests/AppArgsTests.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.