public void ShouldBeOverrideOrImplementationWhenFirstIsSet() { var uut = new EventHierarchy { First = E("first") }; Assert.IsTrue(uut.IsDeclaredInParentHierarchy); }
private static EventHierarchy CompleteDecl(string encType, string superType, string firstType) { var decl = new EventHierarchy(Names.Event(encType)); if (!superType.IsEmpty()) { decl.Super = Names.Event(superType); } if (!firstType.IsEmpty()) { decl.First = Names.Event(firstType); } return(decl); }