You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This gets all the tests projects on Windows passing that *should*
pass without compiling a Windows binary/equivalent of
`libjava-interop.dylib`.
In total, these test projects are passing:
- `generator-Tests`
- `Java.Interop.Tools.JavaCallableWrappers-Tests`
- `LogcatParse-Tests`
- `Xamarin.Android.Tools.ApiXmlAdjuster-Tests`
- `Xamarin.Android.Tools.Bytecode-Tests`
~~ Changes per test project ~~
`Xamarin.Android.Tools.Bytecode-Tests`
- Changes to normalize line endings, `ClassPath` should not
hardcode `NewLineChars` to `\n`
- The test for `POSITIVE_INFINITY` was failing:
Expected: "Double(Infinity)"
But was: "Double(∞)"
Fix this failure by always using `CultureInfo.InvariantCulture`.
We doubt that anyone is going to desire that `.ToString()` on
`ConstantPool` subclasses return anything in the current culture;
they're largely for debugging aids.
generator-Tests:
- `CSharpCodeProvider` needs a `using` statement or the generated
assembly file is locked for future tests.
This causes many test failures.
- .NET's `CSharpCodeProvider` won't support C# 6 on Windows.
Use `Microsoft.CodeDom.Providers.DotNetCompilerPlatform` to use
C#6 on Windows, and continue using `CSharpCodeProvider` elsewhere.
- The Roslyn package seems to require an environment variable to
locate `csc.exe`. See: https://stackoverflow.com/a/40311406/132442
- When running on Mono, the use of the `partial` keyword is
generated as `partial_`. This does not happen on Windows, so
included a set of "expected" files for Windows. This runs a
different file comparison if the tests are running on Windows.
- `--noshadow` is needed for `generator-Tests` to pass on Windows.
Later an upgrade to NUnit3 is ideal instead, but some test rework
is needed due to the use of the current directory in tests.
We should do this after tests are passing reliably on Windows.
// Metadata.xml XPath method reference: path="/api/package[@name='xamarin.test']/class[@name='CSharpKeywords']/method[@name='usePartial' and count(parameter)=1 and parameter[1][@type='int']]"
// Metadata.xml XPath method reference: path="/api/package[@name='xamarin.test']/class[@name='CSharpKeywords']/method[@name='usePartial' and count(parameter)=1 and parameter[1][@type='int']]"
0 commit comments