コード例 #1
0
ファイル: RefinablePathFacts.cs プロジェクト: liningx/yam
 public void should_refine(string hintPath, string result)
 {
     const string lib1Path = "c:\\lib1\\a.dll";
     const string lib2Path = "c:\\lib2\\a.dll";
     var refinablePath = new RefinablePath("a", new[] { lib1Path, lib2Path });
     Assert.Equal(result, refinablePath.Refine(hintPath, Path.GetDirectoryName("c:/src/test.csproj")));
 }
コード例 #2
0
ファイル: RefinablePathFacts.cs プロジェクト: liningx/yam
 public void should_refine_by_hint()
 {
     const string lib1Path = "c:\\lib1\\a.dll";
     const string lib2Path = "c:\\lib2\\a.dll";
     var refinablePath = new RefinablePath("a", new[] { lib1Path, lib2Path });
     Assert.Throws<ApplicationException>(() => refinablePath.Refine(string.Empty, Path.GetDirectoryName("c:/src/test.csproj")));
 }