1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
5
using ICSharpCode.XmlEditor;
8
namespace XmlEditor.Tests.Paths
11
public class SingleElementPathByNamespaceTestFixture
13
XmlElementPathsByNamespace paths;
18
XmlElementPath path = new XmlElementPath();
19
path.AddElement(new QualifiedName("a", "a-namespace"));
20
paths = new XmlElementPathsByNamespace(path);
24
public void HasSingleXmlElementPath()
26
Assert.AreEqual(1, paths.Count);
30
public void XmlElementPathHasOneElement()
32
XmlElementPath expectedPath = new XmlElementPath();
33
expectedPath.AddElement(new QualifiedName("a", "a-namespace"));
35
Assert.AreEqual(expectedPath, paths[0]);