public void ShouldBeOverrideOrImplementationWhenFirstIsSet()
        {
            var uut = new EventHierarchy
            {
                First = E("first")
            };

            Assert.IsTrue(uut.IsDeclaredInParentHierarchy);
        }
Ejemplo n.º 2
0
        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);
        }