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()); }
private object VisitChildrenWithNewScope(IHasScope decl, IRuleNode context) { using (scope.NewContext(CurrentScope.MakeChildScope())) { decl.Scope = CurrentScope; return(VisitChildren(context)); } }
private static void HasCount(int count, IHasScope result) { Assert.Equal(count, result.MemberCollection.GetValue().members.Count); }