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.GetAssemblyReferences().ToList()[0].Include); Assert.AreEqual(@"..\packages\DotNetZip.Reduced.1.9.1.8\lib\net20\Ionic.Zip.Reduced.dll", p.GetAssemblyReferences().ToList()[0].HintPath); Assert.AreEqual("Microsoft.Build.Framework", p.GetAssemblyReferences().ToList()[1].Include); } }
public void GetReferencesVS2008Test() { using (Stream s = GetStreamForFile("DBInfo.CodeGen.csproj")) { ProjectFileParser p = new ProjectFileParser(s); Assert.AreEqual("System", p.GetAssemblyReferences().ToList()[0].Include); Assert.AreEqual("System.Core", p.GetAssemblyReferences().ToList()[1].Include); } }