Beispiel #1
0
        private static TestMember HasMember(IHasScope result, IKey key)
        {
            var single = result.MemberCollection.GetValue().members.Where(x => key.Equals(x.GetValue().key));

            Assert.Single(single);
            return(single.First().GetValue());
        }
Beispiel #2
0
 private object VisitChildrenWithNewScope(IHasScope decl, IRuleNode context)
 {
     using (scope.NewContext(CurrentScope.MakeChildScope()))
     {
         decl.Scope = CurrentScope;
         return(VisitChildren(context));
     }
 }
Beispiel #3
0
 private static void HasCount(int count, IHasScope result)
 {
     Assert.Equal(count, result.MemberCollection.GetValue().members.Count);
 }