public void TestIsValidSearchPath() { Directory.CreateDirectory(_fakeP2CeMount.PrimarySearchPathDirectory); File.WriteAllText($"{_fakeP2CeMount.PrimarySearchPathDirectory}/gameinfo.txt", "This is a fake gameinfo used for testing!"); bool isValid = MountUtil.IsValidSearchPath(_fakeP2CeMount.PrimarySearchPathDirectory); Assert.That(isValid, Is.True); // Clean up Directory.Delete(_fakeP2CeMount.PrimarySearchPathDirectory, true); isValid = MountUtil.IsValidSearchPath(_fakeP2CeMount.PrimarySearchPathDirectory); Assert.That(isValid, Is.False); }
public void TestPlatformStringLinux64() { string platformString = MountUtil.GetPlatformString(); Assert.That(platformString, Is.EqualTo("linux64")); }