Exemple #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));
 }
Exemple #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"));
 }
Exemple #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"));
 }