Example #1
0
        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" }));
        }
Example #2
0
 public void RefineProbingPath()
 {
     Assert.That(
         BizTalkAssemblyResolver.RefineProbingPaths(@"c:\folder\one"),
         Is.EqualTo(new[] { @"c:\folder\one" }));
 }
Example #3
0
 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" }));
 }
Example #4
0
 public void RefineNullProbingPathArray()
 {
     Assert.That(
         BizTalkAssemblyResolver.RefineProbingPaths(new string[] { null }),
         Is.EqualTo(new string[] { }));
 }
Example #5
0
 public void RefineEmptyProbingPathArray()
 {
     Assert.That(
         BizTalkAssemblyResolver.RefineProbingPaths(new[] { string.Empty }),
         Is.EqualTo(new string[] { }));
 }