owml/tests/OWML.GameFinder.Tests/SteamGameFinderTests.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

28 lines
629 B
C#

using System;
using System.IO;
using OWML.Common;
using OWML.Tests.Setup;
using Xunit;
using Xunit.Abstractions;
namespace OWML.GameFinder.Tests
{
public class SteamGameFinderTests : OWMLTests
{
public SteamGameFinderTests(ITestOutputHelper outputHelper)
: base(outputHelper)
{
}
[Fact]
public void SteamGameFinder_FindGamePath()
{
var pathFinder = new SteamGameFinder(new OwmlConfig(), Console.Object);
var gamePath = pathFinder.FindGamePath();
Assert.Equal(new DirectoryInfo(SteamGamePath).FullName, new DirectoryInfo(gamePath).FullName, StringComparer.InvariantCultureIgnoreCase);
}
}
}