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)); }
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)); }