Imported Upstream version 5.10.0.69

Former-commit-id: fc39669a0b707dd3c063977486506b6793da2890
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2018-01-29 19:03:06 +00:00
parent d8f8abd549
commit e2950ec768
6283 changed files with 453847 additions and 91879 deletions

View File

@@ -1,3 +0,0 @@
Compat issues with assembly System.IO.UnmanagedMemoryStream:
CannotRemoveBaseTypeOrInterface : Type 'System.IO.UnmanagedMemoryStream' does not inherit from base type 'System.MarshalByRefObject' in the implementation but it does in the contract.
Total Issues: 1

View File

@@ -6,7 +6,6 @@
<AssemblyName>System.IO.UnmanagedMemoryStream</AssemblyName>
<IsPartialFacadeAssembly>true</IsPartialFacadeAssembly>
</PropertyGroup>
<!-- Default configurations to help VS understand the configurations -->
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netcoreapp-Unix-Debug|AnyCPU'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netcoreapp-Unix-Release|AnyCPU'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netcoreapp-Windows_NT-Debug|AnyCPU'" />

View File

@@ -96,8 +96,8 @@ namespace System.IO.Tests
using (var buffer = new TestSafeBuffer(capacity))
using (var uma = new UnmanagedMemoryAccessor(buffer, 0, capacity, FileAccess.ReadWrite))
{
AssertExtensions.Throws<ArgumentException>("type", () => uma.Write<UmaTestStruct_ContainsReferenceType>(0, ref inStruct));
AssertExtensions.Throws<ArgumentException>("type", () => uma.Read<UmaTestStruct_ContainsReferenceType>(0, out inStruct));
AssertExtensions.Throws<ArgumentException>(null, "type", () => uma.Write<UmaTestStruct_ContainsReferenceType>(0, ref inStruct));
AssertExtensions.Throws<ArgumentException>(null, "type", () => uma.Read<UmaTestStruct_ContainsReferenceType>(0, out inStruct));
}
}
@@ -124,8 +124,8 @@ namespace System.IO.Tests
using (var buffer = new TestSafeBuffer(capacity))
using (var uma = new UnmanagedMemoryAccessor(buffer, 0, capacity, FileAccess.ReadWrite))
{
AssertExtensions.Throws<ArgumentException>("type", () => uma.Write<UmaTestStruct_Generic<string>>(0, ref inStruct));
AssertExtensions.Throws<ArgumentException>("type", () => uma.Read<UmaTestStruct_Generic<string>>(0, out inStruct));
AssertExtensions.Throws<ArgumentException>(null, "type", () => uma.Write<UmaTestStruct_Generic<string>>(0, ref inStruct));
AssertExtensions.Throws<ArgumentException>(null, "type", () => uma.Read<UmaTestStruct_Generic<string>>(0, out inStruct));
}
}

View File

@@ -95,8 +95,8 @@ namespace System.IO.Tests
using (var buffer = new TestSafeBuffer(capacity))
using (var uma = new UnmanagedMemoryAccessor(buffer, 0, capacity, FileAccess.ReadWrite))
{
AssertExtensions.Throws<ArgumentException>("type", () => uma.WriteArray<UmaTestStruct_ContainsReferenceType>(0, structArr, 0, 1));
AssertExtensions.Throws<ArgumentException>("type", () => uma.ReadArray<UmaTestStruct_ContainsReferenceType>(0, structArr, 0, 1));
AssertExtensions.Throws<ArgumentException>(null, "type", () => uma.WriteArray<UmaTestStruct_ContainsReferenceType>(0, structArr, 0, 1));
AssertExtensions.Throws<ArgumentException>(null, "type", () => uma.ReadArray<UmaTestStruct_ContainsReferenceType>(0, structArr, 0, 1));
}
}
@@ -123,8 +123,8 @@ namespace System.IO.Tests
using (var buffer = new TestSafeBuffer(capacity))
using (var uma = new UnmanagedMemoryAccessor(buffer, 0, capacity, FileAccess.ReadWrite))
{
AssertExtensions.Throws<ArgumentException>("type", () => uma.WriteArray<UmaTestStruct_Generic<string>>(0, structArr, 0, 1));
AssertExtensions.Throws<ArgumentException>("type", () => uma.ReadArray<UmaTestStruct_Generic<string>>(0, structArr, 0, 1));
AssertExtensions.Throws<ArgumentException>(null, "type", () => uma.WriteArray<UmaTestStruct_Generic<string>>(0, structArr, 0, 1));
AssertExtensions.Throws<ArgumentException>(null, "type", () => uma.ReadArray<UmaTestStruct_Generic<string>>(0, structArr, 0, 1));
}
}