diff --git a/SemanticData/Tests/USNodeSetValidationUnitTestProject/AddressSpaceContextUnitTest.cs b/SemanticData/Tests/USNodeSetValidationUnitTestProject/AddressSpaceContextUnitTest.cs index 88bf2cdf..d912b336 100644 --- a/SemanticData/Tests/USNodeSetValidationUnitTestProject/AddressSpaceContextUnitTest.cs +++ b/SemanticData/Tests/USNodeSetValidationUnitTestProject/AddressSpaceContextUnitTest.cs @@ -128,8 +128,7 @@ public void ImportUANodeSetTest() asp.UTGetReferences(NodeId.Parse(newNodeSet.Items[0].NodeId), x => references.Add(x)); Assert.AreEqual(1, references.Count); Assert.AreEqual(ReferenceKindEnum.HasProperty, references[0].ReferenceKind); - //UAReferenceContext - causes circular references #558 - Assert.IsTrue(references[0].IsSubtypeOf(ReferenceTypeIds.HasProperty)); + Assert.AreEqual(ReferenceKindEnum.HasProperty, references[0].ReferenceKind); references.Clear(); asp.UTGetReferences(NodeId.Parse(newNodeSet.Items[1].NodeId), x => references.Add(x)); Assert.AreEqual(2, references.Count); diff --git a/SemanticData/UANodeSetValidation/UAReferenceContext.cs b/SemanticData/UANodeSetValidation/UAReferenceContext.cs index 6c8fea03..012509a0 100644 --- a/SemanticData/UANodeSetValidation/UAReferenceContext.cs +++ b/SemanticData/UANodeSetValidation/UAReferenceContext.cs @@ -46,14 +46,6 @@ internal UAReferenceContext(Reference reference, IAddressSpaceBuildContext addre #region semantics - //TODO UAReferenceContext - causes circular references #558 - internal bool IsSubtypeOf(NodeId referenceType) - { - List inheritanceChain = new List(); - m_AddressSpace.GetBaseTypes(TypeNode, inheritanceChain); - return inheritanceChain.Where(x => x.NodeIdContext == referenceType).Any(); - } - /// /// Gets the kind of the reference. ///