Improvements to the component dependency resolution tests (dotnet/core-setup#6760)
authorVitek Karas <vitek.karas@microsoft.com>
Tue, 11 Jun 2019 08:54:39 +0000 (01:54 -0700)
committerGitHub <noreply@github.com>
Tue, 11 Jun 2019 08:54:39 +0000 (01:54 -0700)
commit10ead9507102ac7cd3a752a1e7456bfb3738e540
tree9726ee7b2c29669531fc6b60f73a45490ff453f3
parent79fc7296598efb5c078e87b9408b8fb93bdec18e
Improvements to the component dependency resolution tests (dotnet/core-setup#6760)

* Move these under the DependencyResolution (since they belong there)
* Refactor to avoid code duplication
* Change it to not use published real builds of components, but instead simply create mocks on disk (the tests never actually run the components)
* Change where the tests put files on disk
* Reduce file copying for tests which don't need to modify the prepared components
* Delete test assets which are not used anymore

Commit migrated from https://github.com/dotnet/core-setup/commit/bba327461e7521b640be91127309760a18f12416
16 files changed:
src/installer/test/Assets/TestProjects/ComponentWithDependencies/Component.cs [deleted file]
src/installer/test/Assets/TestProjects/ComponentWithDependencies/ComponentDependency/ComponentDependency.csproj [deleted file]
src/installer/test/Assets/TestProjects/ComponentWithDependencies/ComponentDependency/Dependency.cs [deleted file]
src/installer/test/Assets/TestProjects/ComponentWithDependencies/ComponentWithDependencies.csproj [deleted file]
src/installer/test/Assets/TestProjects/ComponentWithResources/Component.cs [deleted file]
src/installer/test/Assets/TestProjects/ComponentWithResources/ComponentWithResources.csproj [deleted file]
src/installer/test/Assets/TestProjects/ComponentWithResources/Resource.en.resx [deleted file]
src/installer/test/Assets/TestProjects/ComponentWithResources/Resource.resx [deleted file]
src/installer/test/HostActivationTests/ComponentDependencyResolution.cs [deleted file]
src/installer/test/HostActivationTests/DependencyResolution/DependencyResolutionBase.cs
src/installer/test/HostActivationTests/DependencyResolution/PortableAppRidAssetResolution.cs
src/installer/test/HostActivationTests/DependencyResolution/ResolveComponentDependencies.cs [new file with mode: 0644]
src/installer/test/HostActivationTests/NetCoreAppBuilder.cs
src/installer/test/TestUtils/FileUtils.cs
src/installer/test/TestUtils/TestApp.cs
src/installer/test/TestUtils/TestArtifact.cs