示例#1
0
 public void TestPath()
 {
     string[] paths = new string[] { @"M:\Somepaththatdoesntexist\", @"C:\Windows\system32", @"Z:\Othernonpath" };
     Assert.AreEqual(@"C:\Windows\system32\notepad.exe", DotNet4Utilities.GetFirstWorking("notepad.exe", paths));
 }
示例#2
0
        public void TestPath()
        {
            var paths = new[] { @"M:\SomePathThatDoesntExist\", @"C:\Windows\system32", @"Z:\OtherNonPath" };

            Assert.AreEqual(@"C:\Windows\system32\notepad.exe", DotNet4Utilities.GetFirstWorking("notepad.exe", paths));
        }