本文整理汇总了C#中MonoDevelop.XmlEditor.XmlElementPath.Equals方法的典型用法代码示例。如果您正苦于以下问题:C# XmlElementPath.Equals方法的具体用法?C# XmlElementPath.Equals怎么用?C# XmlElementPath.Equals使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MonoDevelop.XmlEditor.XmlElementPath
的用法示例。
在下文中一共展示了XmlElementPath.Equals方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: NotEqual
public void NotEqual()
{
XmlElementPath newPath = new XmlElementPath();
newPath.Elements.Add(new QualifiedName("Foo", "bar"));
Assert.IsFalse(newPath.Equals(path), "Should not be equal.");
}
示例2: Equality
public void Equality()
{
XmlElementPath newPath = new XmlElementPath();
newPath.Elements.Add(new QualifiedName("foo", "http://foo"));
Assert.IsTrue(newPath.Equals(path), "Should be equal.");
}
示例3: PathTest4
public void PathTest4()
{
string text = "<x:foo xmlns:x='" + namespaceURI + "' ";
elementPath = XmlParser.GetActiveElementStartPath(text, text.Length);
expectedElementPath = new XmlElementPath();
expectedElementPath.Elements.Add(new QualifiedName("foo", namespaceURI, "x"));
Assert.IsTrue(expectedElementPath.Equals(elementPath),
"Incorrect active element path.");
}
示例4: SuccessTest4
public void SuccessTest4()
{
string text = "<bar xmlns='http://test.com'><foo xmlns='" + namespaceURI + "' ><";
elementPath = XmlParser.GetParentElementPath(text);
expectedElementPath = new XmlElementPath();
expectedElementPath.Elements.Add(new QualifiedName("foo", namespaceURI));
Assert.IsTrue(elementPath.Equals(expectedElementPath),
"Incorrect active element path.");
}
示例5: PathTest5
public void PathTest5()
{
string text = "<foo xmlns='" + namespaceURI + "'><bar a='a'>";
elementPath = XmlParser.GetActiveElementStartPathAtIndex(text, text.IndexOf("='a'"));
expectedElementPath = new XmlElementPath();
expectedElementPath.Elements.Add(new QualifiedName("foo", namespaceURI));
expectedElementPath.Elements.Add(new QualifiedName("bar", namespaceURI));
Assert.IsTrue(elementPath.Equals(expectedElementPath),
"Incorrect active element path.");
}
示例6: CompactPathItem
public void CompactPathItem()
{
XmlElementPath newPath = new XmlElementPath();
newPath.Elements.Add(new QualifiedName("bar", "http://bar", "b"));
path.Compact();
Assert.IsTrue(newPath.Equals(path), "Should be equal.");
}
示例7: Equality
public void Equality()
{
XmlElementPath newPath = new XmlElementPath();
Assert.IsTrue(newPath.Equals(path), "Should be equal.");
}