diff --git a/src/installer/tests/Assets/TestProjects/ResourceLookup/Program.cs b/src/installer/tests/Assets/TestProjects/ResourceLookup/Program.cs deleted file mode 100644 index 86b343f3e48ec..0000000000000 --- a/src/installer/tests/Assets/TestProjects/ResourceLookup/Program.cs +++ /dev/null @@ -1,15 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. - -using System; - -namespace ResourceLookup -{ - public static class Program - { - public static void Main(string[] args) - { - Console.WriteLine("Hello World!"); - } - } -} diff --git a/src/installer/tests/Assets/TestProjects/ResourceLookup/ResourceLookup.csproj b/src/installer/tests/Assets/TestProjects/ResourceLookup/ResourceLookup.csproj deleted file mode 100644 index 50e675ffb951f..0000000000000 --- a/src/installer/tests/Assets/TestProjects/ResourceLookup/ResourceLookup.csproj +++ /dev/null @@ -1,13 +0,0 @@ - - - - $(NetCoreAppCurrent) - Exe - $(MNAVersion) - - - - - - - diff --git a/src/installer/tests/HostActivation.Tests/ResourceLookup.cs b/src/installer/tests/HostActivation.Tests/ResourceLookup.cs deleted file mode 100644 index 48c5a1b9ddc3d..0000000000000 --- a/src/installer/tests/HostActivation.Tests/ResourceLookup.cs +++ /dev/null @@ -1,92 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. - -using System; -using Xunit; - -namespace Microsoft.DotNet.CoreSetup.Test.HostActivation -{ - public class ResourceLookup : IClassFixture - { - private SharedTestState sharedTestState; - - public ResourceLookup(ResourceLookup.SharedTestState fixture) - { - sharedTestState = fixture; - } - - [Fact] - public void Muxer_activation_of_Build_Output_Resource_DLL_with_DepsJson_and_RuntimeConfig_Local_Succeeds() - { - var fixture = sharedTestState.ResourceLookupFixture_Built - .Copy(); - - var dotnet = fixture.BuiltDotnet; - var appDll = fixture.TestProject.AppDll; - - dotnet.Exec(appDll) - .CaptureStdErr() - .CaptureStdOut() - .Execute() - .Should().Pass() - .And.HaveStdOutContaining("Hello World"); - - dotnet.Exec("exec", appDll) - .CaptureStdErr() - .CaptureStdOut() - .Execute() - .Should().Pass() - .And.HaveStdOutContaining("Hello World"); - } - - [Fact] - public void Muxer_activation_of_Publish_Output_ResourceLookup_DLL_with_DepsJson_and_RuntimeConfig_Local_Succeeds() - { - var fixture = sharedTestState.ResourceLookupFixture_Published - .Copy(); - - var dotnet = fixture.BuiltDotnet; - var appDll = fixture.TestProject.AppDll; - - dotnet.Exec(appDll) - .CaptureStdErr() - .CaptureStdOut() - .Execute() - .Should().Pass() - .And.HaveStdOutContaining("Hello World"); - - dotnet.Exec("exec", appDll) - .CaptureStdErr() - .CaptureStdOut() - .Execute() - .Should().Pass() - .And.HaveStdOutContaining("Hello World"); - } - - public class SharedTestState : IDisposable - { - public TestProjectFixture ResourceLookupFixture_Built { get; } - public TestProjectFixture ResourceLookupFixture_Published { get; } - public RepoDirectoriesProvider RepoDirectories { get; } - - public SharedTestState() - { - RepoDirectories = new RepoDirectoriesProvider(); - - ResourceLookupFixture_Built = new TestProjectFixture("ResourceLookup", RepoDirectories) - .EnsureRestored() - .BuildProject(); - - ResourceLookupFixture_Published = new TestProjectFixture("ResourceLookup", RepoDirectories) - .EnsureRestored() - .PublishProject(); - } - - public void Dispose() - { - ResourceLookupFixture_Built.Dispose(); - ResourceLookupFixture_Published.Dispose(); - } - } - } -}