Skip to content

Commit

Permalink
fixed test names & resx CDATA
Browse files Browse the repository at this point in the history
  • Loading branch information
filipw committed Mar 4, 2019
1 parent 27ea453 commit a41653e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions src/Scripting/CSharp/CSharpScriptingResources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -124,22 +124,22 @@
<value>Copyright (C) Microsoft Corporation. All rights reserved.</value>
</data>
<data name="InteractiveHelp" xml:space="preserve">
<value>Usage: csi [option] ... [script-file.csx] [script-argument] ...
<value><![CDATA[Usage: csi [option] ... [script-file.csx] [script-argument] ...
Executes script-file.csx if specified, otherwise launches an interactive REPL (Read Eval Print Loop).
Options:
/help Display this usage message (alternative form: /?)
/version Display the version and exit
/i Drop to REPL after executing the specified script.
/r:&lt;file&gt; Reference metadata from the specified assembly file (alternative form: /reference)
/r:&lt;file list&gt; Reference metadata from the specified assembly files (alternative form: /reference)
/lib:&lt;path list&gt; List of directories where to look for libraries specified by #r directive.
/r:<file> Reference metadata from the specified assembly file (alternative form: /reference)
/r:<file list> Reference metadata from the specified assembly files (alternative form: /reference)
/lib:<path list> List of directories where to look for libraries specified by #r directive.
(alternative forms: /libPath /libPaths)
/u:&lt;namespace&gt; Define global namespace using (alternative forms: /using, /usings, /import, /imports)
@&lt;file&gt; Read response file for more options
/u:<namespace> Define global namespace using (alternative forms: /using, /usings, /import, /imports)
@<file> Read response file for more options
-- Indicates that the remaining arguments should not be treated as options.
</value>
]]></value>
</data>
<data name="CannotSetCSharpLanguageVersion" xml:space="preserve">
<value>Cannot set C# LanguageVersion because ParseOptions were already configured for a different language.</value>
Expand Down
4 changes: 2 additions & 2 deletions src/Scripting/CSharpTest/ScriptOptionsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ public void WithLanguageVersion()
}

[Fact]
public void WithWithLanguageVersion_SameValueTwice_DoesNotCreateNewInstance()
public void WithLanguageVersion_SameValueTwice_DoesNotCreateNewInstance()
{
var options = ScriptOptions.Default.WithLanguageVersion(LanguageVersion.CSharp8);
Assert.Same(options, options.WithLanguageVersion(LanguageVersion.CSharp8));
}

[Fact]
public void WithWithLanguageVersion_NonCSharpParseOptions_Throws()
public void WithLanguageVersion_NonCSharpParseOptions_Throws()
{
var options = ScriptOptions.Default.WithParseOptions(new VisualBasicParseOptions(kind: SourceCodeKind.Script, languageVersion: VisualBasic.LanguageVersion.Latest));
Assert.Throws<InvalidOperationException>(() => options.WithLanguageVersion(LanguageVersion.CSharp8));
Expand Down

0 comments on commit a41653e

Please sign in to comment.