Ejemplo n.º 1
0
        public void op_Load_FileInfo()
        {
            using (var temp = new TempDirectory())
            {
                var location = temp.Info.ToFile("example.csproj");
                ProjectFile.Create(location);

                var obj = Project.Load(location);

                Assert.Equal(location, obj.Location);

                var navigator = obj.Xml.CreateNavigator();

                Assert.True(navigator.Evaluate <bool>("1 = count(/b:Project)", Project.ToNamespaces(navigator)));
            }
        }
Ejemplo n.º 2
0
 public void op_ToNamespaces_XPathNavigatorNull()
 {
     Assert.Throws <ArgumentNullException>(() => Project.ToNamespaces(null as XPathNavigator));
 }