public void TheSolutionReaderCanReadMoreThanOneProject() { VS10SolutionReader pr = new VS10SolutionReader(); List<VS10Project> refs = pr.FindProjects(vs10withTwoProjects); Assert.IsNotNull(refs); Assert.AreEqual(2, refs.Count); Assert.AreEqual(@"HellBlaster\HellBlaster.csproj", refs[0].RelativePath); Assert.AreEqual("HellBlaster", refs[0].Name); Assert.AreEqual(@"HellBlasterTest\HellBlasterTest.csproj", refs[1].RelativePath); Assert.AreEqual("HellBlasterTest", refs[1].Name); }
public void TheSolutionReaderCanReadTheProjectName() { VS10SolutionReader pr = new VS10SolutionReader(); List<VS10Project> refs = pr.FindProjects(vs10withOneProject); Assert.IsNotNull(refs); Assert.AreEqual(1, refs.Count); Assert.AreEqual("HellBlaster", refs[0].Name); }
public void WhenTheStringIsNotAnXMLIGetANullReferenceList() { VS10SolutionReader pr = new VS10SolutionReader(); Assert.IsNull(pr.FindProjects("This is not a xml")); }
public void WhenTheStringIsNotAnVS10FileIGetANullReferenceList() { VS10SolutionReader pr = new VS10SolutionReader(); Assert.IsNull(pr.FindProjects("Microsoft Visual Studio Solution File, Format Version 9.00")); }
public void WhenTheStringIsEmptyIGetANUllReferenceList() { VS10SolutionReader pr = new VS10SolutionReader(); Assert.IsNull(pr.FindProjects(null as string)); }
public void WhenTheStringContainsAProjectIGetReferenceListWithOneItem() { VS10SolutionReader pr = new VS10SolutionReader(); List<VS10Project> refs = pr.FindProjects(vs10withOneProject); Assert.IsNotNull(refs); Assert.AreEqual(1, refs.Count); }
public void TheSolutionReaderCanReadTheProjectRelativePath() { VS10SolutionReader pr = new VS10SolutionReader(); List<VS10Project> refs = pr.FindProjects(vs10withOneProject); Assert.IsNotNull(refs); Assert.AreEqual(1, refs.Count); Assert.AreEqual(@"HellBlaster\HellBlaster.csproj", refs[0].RelativePath); }