예제 #1
0
        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);
        }
예제 #2
0
        public void TestPlatformStringLinux64()
        {
            string platformString = MountUtil.GetPlatformString();

            Assert.That(platformString, Is.EqualTo("linux64"));
        }