|
|
|
@ -1,4 +1,6 @@
@@ -1,4 +1,6 @@
|
|
|
|
|
using FluentAssertions; |
|
|
|
|
using System; |
|
|
|
|
|
|
|
|
|
using FluentAssertions; |
|
|
|
|
|
|
|
|
|
using NUnit.Framework; |
|
|
|
|
|
|
|
|
@ -36,6 +38,22 @@ namespace ICSharpCode.ILSpy.Tests
@@ -36,6 +38,22 @@ namespace ICSharpCode.ILSpy.Tests
|
|
|
|
|
cmdLineArgs.NavigateTo.Should().BeEquivalentTo(navigateTo); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
[Test] |
|
|
|
|
public void VerifyNavigateToOption_NoneTest_Matching_VSAddin() |
|
|
|
|
{ |
|
|
|
|
var cmdLineArgs = new CommandLineArguments(new string[] { "--navigateto:none" }); |
|
|
|
|
cmdLineArgs.NavigateTo.Should().BeEquivalentTo("none"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
[Test] |
|
|
|
|
public void VerifyCaseSensitivityOfOptionsThrows() |
|
|
|
|
{ |
|
|
|
|
Action act = () => new CommandLineArguments(new string[] { "--navigateTo:none" }); |
|
|
|
|
|
|
|
|
|
act.Should().Throw<McMaster.Extensions.CommandLineUtils.UnrecognizedCommandParsingException>() |
|
|
|
|
.WithMessage("Unrecognized option '--navigateTo:none'"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
[Test] |
|
|
|
|
public void VerifySearchOption() |
|
|
|
|
{ |
|
|
|
|