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