diff --git a/tests/Tgstation.Server.Host.Tests/Core/TestApplication.cs b/tests/Tgstation.Server.Host.Tests/Core/TestApplication.cs deleted file mode 100644 index 10e043be13..0000000000 --- a/tests/Tgstation.Server.Host.Tests/Core/TestApplication.cs +++ /dev/null @@ -1,46 +0,0 @@ -using Microsoft.AspNetCore; -using Microsoft.AspNetCore.Hosting; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using System; -using System.IO; -using System.Threading; -using System.Threading.Tasks; -using Tgstation.Server.Host.IO; - -namespace Tgstation.Server.Host.Core.Tests -{ - [TestClass] - public sealed class TestApplication : IServerControl - { - public Task ApplyUpdate(byte[] updateZipData, IIOManager ioManager, CancellationToken cancellationToken) => throw new NotImplementedException(); - - public void RegisterForRestart(Action action) - { - } - - public bool Restart() => throw new NotImplementedException(); - - [TestMethod] - public async Task TestSuccessfulStartup() - { - var dbName = Path.GetTempFileName(); - try - { - using (var webHost = WebHost.CreateDefaultBuilder(new string[] { "Database:DatabaseType=Sqlite", "Database:ConnectionString=Data Source=" + dbName }) //force it to use sqlite - .UseStartup() - .ConfigureServices((serviceCollection) => serviceCollection.AddSingleton(this)) - .Build() - ) - { - await webHost.StartAsync().ConfigureAwait(false); - await webHost.StopAsync().ConfigureAwait(false); - } - } - finally - { - File.Delete(dbName); - } - } - } -}