Imported Upstream version 4.3.2.467

Former-commit-id: 9c2cb47f45fa221e661ab616387c9cda183f283d
This commit is contained in:
Xamarin Public Jenkins
2016-02-22 11:00:01 -05:00
parent f302175246
commit f3e3aab35a
4097 changed files with 122406 additions and 82300 deletions

View File

@ -27,6 +27,9 @@ namespace MonoTests.Microsoft.CSharp
private static readonly string _sourceLibrary1 = "public class Test1 {}";
private static readonly string _sourceLibrary2 = "public class Test2 {}";
private static readonly string _sourceLibrary3 =
@"public class Test3 { public void F() { } }
public class Test4 : Test3 { public void F() { } }";
private static readonly string _sourceExecutable = "public class Program { static void Main () { } }";
[SetUp]
@ -547,6 +550,22 @@ namespace MonoTests.Microsoft.CSharp
Assert.AreEqual (tempFile, tempFiles[0], "#4");
}
[Test]
public void MultiLineWarningIsReportedAsOneWarning()
{
CompilerParameters options = new CompilerParameters ();
options.GenerateExecutable = false;
options.GenerateInMemory = true;
options.TempFiles = new TempFileCollection (_tempDir);
ICodeCompiler compiler = _codeProvider.CreateCompiler ();
CompilerResults results = compiler.CompileAssemblyFromSource (options,
_sourceLibrary3);
// verify compilation was successful
AssertCompileResults (results, true);
}
private static string CreateTempDirectory ()
{
// create a uniquely named zero-byte file