mirror of
https://github.com/ow-mods/owml.git
synced 2025-12-11 20:15:48 +01:00
* fixed popup bug * tests for Steam game finder * improved error messages when loading mods
28 lines
624 B
C#
28 lines
624 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 EpicGameFinderTests : OWMLTests
|
|
{
|
|
public EpicGameFinderTests(ITestOutputHelper outputHelper)
|
|
: base(outputHelper)
|
|
{
|
|
}
|
|
|
|
[Fact]
|
|
public void EpicGameFinder_FindGamePath()
|
|
{
|
|
var pathFinder = new EpicGameFinder(new OwmlConfig(), Console.Object);
|
|
|
|
var gamePath = pathFinder.FindGamePath();
|
|
|
|
Assert.Equal(new DirectoryInfo(EpicGamePath).FullName, new DirectoryInfo(gamePath).FullName, StringComparer.InvariantCultureIgnoreCase);
|
|
}
|
|
}
|
|
}
|