Ejemplo n.º 1
0
 public void ReadSimpleCSharpProject()
 {
     NetProjectReader reader = new NetProjectReader(@"..\..\..\Testing\Test1\ConsoleApplication.csproj");
     Assert.AreEqual(2, reader.FileNames.Count());
     Assert.AreEqual("Program.cs", reader.FileNames.ElementAt(0));
     Assert.AreEqual(@"Properties\AssemblyInfo.cs", reader.FileNames.ElementAt(1));
 }
Ejemplo n.º 2
0
 public void ReadVbProject()
 {
     NetProjectReader reader = new NetProjectReader(@"..\..\..\Testing\Test2\VBWindowsApplication\VBWindowsApplication.vbproj");
     Assert.AreEqual(7, reader.FileNames.Count());
     Assert.AreEqual("Form1.vb", reader.FileNames.ElementAt(0));
     Assert.IsTrue(reader.FileNames.Contains(@"My Project\AssemblyInfo.vb"));
 }
Ejemplo n.º 3
0
 public void ReadCSharpProject()
 {
     NetProjectReader reader = new NetProjectReader(@"..\..\..\Testing\Test2\CSharpWindowsFormsApplication\CSharpWindowsFormsApplication.csproj");
     Assert.AreEqual(7, reader.FileNames.Count());
     Assert.IsTrue(reader.FileNames.Contains(@"Form1.cs"));
     Assert.IsTrue(reader.FileNames.Contains(@"Form1.Designer.cs"));
     Assert.IsTrue(reader.FileNames.Contains(@"Program.cs"));
     Assert.IsTrue(reader.FileNames.Contains(@"Properties\AssemblyInfo.cs"));
 }