예제 #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));
        }
예제 #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));
        }