public void RefineProbingPathArray() { var probingPaths = new[] { @"c:\folder\one\file.dll", @"c:\folder\two\file.dll" }.Select(Path.GetDirectoryName).ToArray(); Assert.That( BizTalkAssemblyResolver.RefineProbingPaths(probingPaths), Is.EqualTo(new[] { @"c:\folder\one", @"c:\folder\two" })); }
public void RefineProbingPath() { Assert.That( BizTalkAssemblyResolver.RefineProbingPaths(@"c:\folder\one"), Is.EqualTo(new[] { @"c:\folder\one" })); }
public void RefineJoinedProbingPaths() { Assert.That( BizTalkAssemblyResolver.RefineProbingPaths(@"c:\folder\one;c:\folder\two", @"c:\folder\six; ;;c:\folder\ten;"), Is.EqualTo(new[] { @"c:\folder\one", @"c:\folder\two", @"c:\folder\six", @"c:\folder\ten" })); }
public void RefineNullProbingPathArray() { Assert.That( BizTalkAssemblyResolver.RefineProbingPaths(new string[] { null }), Is.EqualTo(new string[] { })); }
public void RefineEmptyProbingPathArray() { Assert.That( BizTalkAssemblyResolver.RefineProbingPaths(new[] { string.Empty }), Is.EqualTo(new string[] { })); }