owml/tests/OWML.Launcher.Tests/LauncherTests.cs
AmazingAlek fee8f13116
Popup fix (#334)
* fixed popup bug
* tests for Steam game finder
* improved error messages when loading mods
2020-12-28 23:17:11 +01:00

33 lines
709 B
C#

using Moq;
using OWML.Common;
using OWML.Tests.Setup;
using Xunit;
using Xunit.Abstractions;
namespace OWML.Launcher.Tests
{
public class LauncherTests : OWMLTests
{
public LauncherTests(ITestOutputHelper outputHelper)
: base(outputHelper)
{
}
[Fact]
public void Run_StartsGame()
{
var processHelper = new Mock<IProcessHelper>();
var container = Program.CreateContainer(new[] { "-consolePort", "1337" });
container.Add(processHelper.Object);
container.Add(Console.Object);
container.Add(Logger.Object);
var app = container.Resolve<App>();
app.Run();
processHelper.Verify(s => s.Start($"{SteamGamePath}/OuterWilds.exe", new string[] { }), Times.Once);
}
}
}