Beispiel #1
0
        public void TestEqualityNonDomNodeAdapter()
        {
            DomNodeType type = new DomNodeType("type");

            type.Define(new ExtensionInfo <NonDomNodeAdapter>());
            DomNode node = new DomNode(type);

            NonDomNodeAdapter test = node.GetAdapter(typeof(NonDomNodeAdapter)) as NonDomNodeAdapter;

            Assert.True(node.Equals(test));
        }
Beispiel #2
0
        public void TestEqualityNonDomNodeAdapter()
        {
            DomNodeType type = new DomNodeType("type");
            type.Define(new ExtensionInfo<NonDomNodeAdapter>());
            DomNode node = new DomNode(type);

            NonDomNodeAdapter test = node.GetAdapter(typeof(NonDomNodeAdapter)) as NonDomNodeAdapter;
            Assert.True(node.Equals(test));
        }