-
Notifications
You must be signed in to change notification settings - Fork 534
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[One .NET] Add Microsoft.Android-Tests unit tests
The following general test files and categories have been ignored: • Mono.Data.Sqlite/SqliteTests.cs • JnienvTest.CreateTypeWithExportedMethods • All System.Drawing/TypeConverterTest tests • NetworkInterfaces.DotNetInterfacesShouldEqualJavaInterfaces • AppDomainTest • TimeZoneTest.TestDaylightSavingsTime The following tests have been ignored due missing System.Security.Cryptography and/or networking support: • XmlReaderPullParserTest.ToLocalJniHandle • XmlReaderResourceParserTest.ToLocalJniHandle • System.Net/SslTest • System.Net/WebSocketTests
- Loading branch information
Showing
28 changed files
with
370 additions
and
303 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
src/Mono.Android/Test/Java.Interop-Tests/Java.Interop-Tests.NET.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<Project> | ||
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" /> | ||
<Import Project="..\..\..\..\Configuration.props" /> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net5.0-android</TargetFramework> | ||
<RootNamespace>Java.Interop_Tests</RootNamespace> | ||
<AssemblyName>Java.Interop-Tests</AssemblyName> | ||
<OutputType>Library</OutputType> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies> | ||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
<SignAssembly>true</SignAssembly> | ||
<AssemblyOriginatorKeyFile>..\..\..\..\product.snk</AssemblyOriginatorKeyFile> | ||
<DefineConstants>$(DefineConstants);NO_MARSHAL_MEMBER_BUILDER_SUPPORT</DefineConstants> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Mono.Linq.Expressions" Version="2.0.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Compile Include="$(JavaInteropSourceDirectory)\tests\Java.Interop-Tests\**\*.cs" /> | ||
<Compile Remove="$(JavaInteropSourceDirectory)\tests\Java.Interop-Tests\Java.Interop\JavaVMFixture.cs" /> | ||
<Compile Remove="$(JavaInteropSourceDirectory)\tests\Java.Interop-Tests\Java.Interop\JniReferenceSafeHandleTest.cs" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="$(XamarinAndroidSourcePath)src\Xamarin.Android.NUnitLite\Xamarin.Android.NUnitLite.NET.csproj" /> | ||
<ProjectReference Include="$(JavaInteropSourceDirectory)\src\Java.Interop.GenericMarshaler\Java.Interop.GenericMarshaler.csproj" /> | ||
</ItemGroup> | ||
|
||
<!-- Import Microsoft.NET.Sdk targets before our targets so we can override build/clean behavior --> | ||
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" /> | ||
<Import Project="Java.Interop-Tests.targets" /> | ||
|
||
<PropertyGroup> | ||
<BuildDependsOn> | ||
BuildTestJarFile; | ||
_CopyTestJarFiles; | ||
$(BuildDependsOn) | ||
</BuildDependsOn> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<CleanDependsOn> | ||
CleanTestJarFile; | ||
$(CleanDependsOn); | ||
CleanLocal; | ||
</CleanDependsOn> | ||
</PropertyGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/Mono.Android/Test/Mono.Android-Test.Library/Mono.Android-Test.Library.NET.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<Project Sdk="Microsoft.NET.Sdk" > | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net5.0-android</TargetFramework> | ||
<RootNamespace>Xamarin.Android.RuntimeTests</RootNamespace> | ||
<OutputType>Library</OutputType> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<RootNamespace>Mono.Android_Test.Library</RootNamespace> | ||
<FileAlignment>512</FileAlignment> | ||
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<AndroidAsset Include="..\LinkedAssets\linked_text2.txt"> | ||
<Link>Assets\linked_text2.txt</Link> | ||
</AndroidAsset> | ||
<AndroidAsset Include="..\LinkedAssets\folder.png"> | ||
<Link>Assets\LibAssetSubFolder\folder.png</Link> | ||
</AndroidAsset> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
35 changes: 35 additions & 0 deletions
35
src/Xamarin.Android.NUnitLite/Xamarin.Android.NUnitLite.NET.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<Project Sdk="Microsoft.NET.Sdk" > | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net5.0-android</TargetFramework> | ||
<OutputType>Library</OutputType> | ||
<RootNamespace>Xamarin.Android.NUnitLite</RootNamespace> | ||
<SignAssembly>true</SignAssembly> | ||
<AssemblyOriginatorKeyFile>..\..\product.snk</AssemblyOriginatorKeyFile> | ||
<AndroidApplication>false</AndroidApplication> | ||
<NoStdLib>true</NoStdLib> | ||
<!-- Disable XML doc warnings: | ||
CS1570: XML comment has badly formed XML - 'Whitespace is not allowed at this location.' | ||
CS1572: XML comment has a param tag for 'Bar', but there is no parameter by that name | ||
CS1591: Missing XML comment for publicly visible type or member 'Foo' | ||
--> | ||
<NoWarn>1570;1572;1591</NoWarn> | ||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo> | ||
</PropertyGroup> | ||
|
||
<Import Project="..\..\build-tools\scripts\MonoAndroidFramework.props" /> | ||
|
||
<PropertyGroup> | ||
<DebugSymbols>true</DebugSymbols> | ||
<Optimize>false</Optimize> | ||
<OutputPath>..\..\bin\$(Configuration)\lib\xamarin.android\xbuild-frameworks\Microsoft.Android\</OutputPath> | ||
<DefineConstants>$(DefineConstants);NUNITLITE;CLR_4_0;NET_4_5;__MOBILE__;MONOTOUCH</DefineConstants> | ||
<DocumentationFile>$(OutputPath)\$(AssemblyName).xml</DocumentationFile> | ||
<GenerateDocumentation>True</GenerateDocumentation> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Compile Include="..\..\src-ThirdParty\NUnitLite\**\*.cs" /> | ||
</ItemGroup> | ||
|
||
</Project> |
Oops, something went wrong.