diff --git a/src/installer/tests/Assets/TestProjects/StandaloneApp3x/Program.cs b/src/installer/tests/Assets/TestProjects/StandaloneApp3x/Program.cs deleted file mode 100644 index 2bb065a6e980df..00000000000000 --- a/src/installer/tests/Assets/TestProjects/StandaloneApp3x/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 StandaloneApp -{ - public static class Program - { - public static void Main(string[] args) - { - Console.WriteLine("Hello World!"); - } - } -} diff --git a/src/installer/tests/Assets/TestProjects/StandaloneApp3x/StandaloneApp3x.csproj b/src/installer/tests/Assets/TestProjects/StandaloneApp3x/StandaloneApp3x.csproj deleted file mode 100644 index 567d0a28562310..00000000000000 --- a/src/installer/tests/Assets/TestProjects/StandaloneApp3x/StandaloneApp3x.csproj +++ /dev/null @@ -1,17 +0,0 @@ - - - StandaloneApp - netcoreapp3.0;netcoreapp3.1 - Exe - $(TestTargetRid) - true - - - - - net6.0 - - diff --git a/src/installer/tests/Microsoft.NET.HostModel.Tests/Microsoft.NET.HostModel.Bundle.Tests/BundleLegacy.cs b/src/installer/tests/Microsoft.NET.HostModel.Tests/Microsoft.NET.HostModel.Bundle.Tests/BundleLegacy.cs deleted file mode 100644 index 60ebfe7b4faf07..00000000000000 --- a/src/installer/tests/Microsoft.NET.HostModel.Tests/Microsoft.NET.HostModel.Bundle.Tests/BundleLegacy.cs +++ /dev/null @@ -1,71 +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; -using Microsoft.DotNet.Cli.Build.Framework; -using Microsoft.DotNet.CoreSetup.Test; -using Microsoft.NET.HostModel.Bundle; -using BundleTests.Helpers; - -namespace Microsoft.NET.HostModel.Tests -{ - [SkipOnPlatform(TestPlatforms.OSX, "Not supported on OSX.")] - public class BundleLegacy : IClassFixture - { - private SharedTestState sharedTestState; - - public BundleLegacy(SharedTestState fixture) - { - sharedTestState = fixture; - } - - [InlineData(0)] - [InlineData(1)] - [Theory] - public void TestNetCoreApp3xApp(int minorVersion) - { - var fixture = (minorVersion == 0) ? sharedTestState.TestFixture30.Copy() : sharedTestState.TestFixture31.Copy(); - - var singleFile = BundleHelper.BundleApp(fixture, targetFrameworkVersion: new Version(3, minorVersion)); - - Command.Create(singleFile) - .CaptureStdErr() - .CaptureStdOut() - .Execute() - .Should() - .Pass() - .And - .HaveStdOutContaining("Hello World!"); - } - - private static TestProjectFixture CreatePublishedFixture(string netCoreAppFramework, string mnaVersion) - { - var repoDirectories = new RepoDirectoriesProvider(microsoftNETCoreAppVersion: mnaVersion); - var fixture = new TestProjectFixture("StandaloneApp3x", repoDirectories, framework: netCoreAppFramework, assemblyName: "StandaloneApp"); - - fixture.PublishProject(runtime: fixture.CurrentRid, selfContained: true, outputDirectory: BundleHelper.GetPublishPath(fixture), restore: true); - - return fixture; - } - - public class SharedTestState : IDisposable - { - public TestProjectFixture TestFixture30 { get; set; } - public TestProjectFixture TestFixture31 { get; set; } - - - public SharedTestState() - { - TestFixture30 = CreatePublishedFixture("netcoreapp3.0", "3.0.0"); - TestFixture31 = CreatePublishedFixture("netcoreapp3.1", "3.1.0"); - } - - public void Dispose() - { - TestFixture30.Dispose(); - TestFixture31.Dispose(); - } - } - } -}