Imported Upstream version 5.8.0.22

Former-commit-id: df344e34b07851d296efb3e6604c8db42b6f7aa3
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2017-10-19 20:04:20 +00:00
parent 5f4a27cc8a
commit 7d05485754
5020 changed files with 114082 additions and 186061 deletions

View File

@@ -156,7 +156,7 @@ namespace System.CodeDom.Tests
public void Remove_NoSuchObject_ThrowsArgumentException()
{
var collection = Ctor();
Assert.Throws<ArgumentException>(null, () => Remove(collection, new TItem()));
AssertExtensions.Throws<ArgumentException>(null, () => Remove(collection, new TItem()));
}
[Fact]

View File

@@ -247,7 +247,7 @@ namespace System.CodeDom.Compiler.Tests
[Fact]
public void CompileAssemblyFromDom_CallsCompilerMethod()
{
Assert.Throws<ArgumentException>(() => new CustomProvider().CompileAssemblyFromDom(new CompilerParameters()));
AssertExtensions.Throws<ArgumentException>(null, () => new CustomProvider().CompileAssemblyFromDom(new CompilerParameters()));
}
[Fact]
@@ -283,7 +283,7 @@ namespace System.CodeDom.Compiler.Tests
[Fact]
public void CreateEscapedIdentifier_CallsGeneratorMethod()
{
Assert.Throws<ArgumentException>(null, () => new CustomProvider().CreateEscapedIdentifier("value"));
AssertExtensions.Throws<ArgumentException>(null, () => new CustomProvider().CreateEscapedIdentifier("value"));
}
[Fact]

View File

@@ -91,9 +91,6 @@
<Compile Include="Other\CodeAttributeArgumentTests.cs" />
<Compile Include="VBCodeGenerationTests.cs" />
<Compile Include="CSharpCodeGenerationTests.cs" />
<Compile Include="$(CommonTestPath)\System\AssertExtensions.cs">
<Link>Common\System\AssertExtensions.cs</Link>
</Compile>
<Compile Include="$(CommonTestPath)\System\Runtime\Serialization\Formatters\BinaryFormatterHelpers.cs">
<Link>Common\System\Runtime\Serialization\Formatters\BinaryFormatterHelpers.cs</Link>
</Compile>