[Xamarin.Android.Build.Tests] Port Tests from commercial repo #2980
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As part of a move to unify our unit tests into the
main repo this PR brings in all the InstantRun tests.
They are protected bbehind a
CommercialBuildAvailablecheck which will only be
trueif the commercial partsare available. The commercial tests are also flagged with
a nunit category attribute of
Commercialjust in case wedecide to filter in the future.
This PR also makes some changes to the folder structure.
ALL
Taskbased tests (i.e ones that test just a Task usingthe MockBbuildEngine) have been moved into the
Tasksfolder.We already have a few tests in that folder, this make sure
they are all in one place.
the
*.OSS.cspartial class files have been renamed to*.TestCaseSource.cs. They also handle the tests for BOTHopen source and commercial builds. As a result they will
not longer be needed in the commercial repo. They were also
moved into the shared project. This change will probably cause
commercial build failures until PR #966 is merged on the
commercial side.