From a41653e813dd663f0a37eb65e8f0edf3f5277417 Mon Sep 17 00:00:00 2001 From: filipw Date: Mon, 4 Mar 2019 22:02:32 +0100 Subject: [PATCH] fixed test names & resx CDATA --- src/Scripting/CSharp/CSharpScriptingResources.resx | 14 +++++++------- src/Scripting/CSharpTest/ScriptOptionsTests.cs | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Scripting/CSharp/CSharpScriptingResources.resx b/src/Scripting/CSharp/CSharpScriptingResources.resx index d9f81cdbaf085..6145eb5de1e85 100644 --- a/src/Scripting/CSharp/CSharpScriptingResources.resx +++ b/src/Scripting/CSharp/CSharpScriptingResources.resx @@ -124,7 +124,7 @@ Copyright (C) Microsoft Corporation. All rights reserved. - Usage: csi [option] ... [script-file.csx] [script-argument] ... + Reference metadata from the specified assembly file (alternative form: /reference) + /r: Reference metadata from the specified assembly files (alternative form: /reference) + /lib: List of directories where to look for libraries specified by #r directive. (alternative forms: /libPath /libPaths) - /u:<namespace> Define global namespace using (alternative forms: /using, /usings, /import, /imports) - @<file> Read response file for more options + /u: Define global namespace using (alternative forms: /using, /usings, /import, /imports) + @ Read response file for more options -- Indicates that the remaining arguments should not be treated as options. - +]]> Cannot set C# LanguageVersion because ParseOptions were already configured for a different language. diff --git a/src/Scripting/CSharpTest/ScriptOptionsTests.cs b/src/Scripting/CSharpTest/ScriptOptionsTests.cs index 011a4dd1f1828..c352186b63ba9 100644 --- a/src/Scripting/CSharpTest/ScriptOptionsTests.cs +++ b/src/Scripting/CSharpTest/ScriptOptionsTests.cs @@ -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(() => options.WithLanguageVersion(LanguageVersion.CSharp8));