Beispiel #1
0
 public void GetReferencesVS2008Test()
 {
     using (Stream s = GetStreamForFile("DBInfo.CodeGen.csproj"))
     {
         ProjectFileParser p = new ProjectFileParser(s);
         Assert.AreEqual("System", p.GetReferences().ToList()[0].Include);
         Assert.AreEqual("System.Core", p.GetReferences().ToList()[1].Include);
     }
 }
Beispiel #2
0
 public void GetReferencesVS2013Test()
 {
     using (Stream s = GetStreamForFile("MSBuild.Community.Tasks.csproj"))
     {
         ProjectFileParser p = new ProjectFileParser(s);
         Assert.AreEqual("Ionic.Zip.Reduced, Version=1.9.1.8, Culture=neutral, PublicKeyToken=edbe51ad942a3f5c, processorArchitecture=MSIL", p.GetReferences().ToList()[0].Include);
         Assert.AreEqual(@"..\packages\DotNetZip.Reduced.1.9.1.8\lib\net20\Ionic.Zip.Reduced.dll", p.GetReferences().ToList()[0].HintPath);
         Assert.AreEqual("Microsoft.Build.Framework", p.GetReferences().ToList()[1].Include);
     }
 }