You've already forked linux-packaging-mono
Imported Upstream version 4.3.2.467
Former-commit-id: 9c2cb47f45fa221e661ab616387c9cda183f283d
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user