public static IntellisenseDeclarations AssertPresenceOf(this IntellisenseDeclarations declarations, params string[] expectedDeclarationNames)
{
Dictionary<string, bool> foundDeclarations = declarations.GetExpectedDeclarations(expectedDeclarationNames);
// assert each entry is true in the dictionary, meaning all declarations were
// found in the list
foreach (var name in foundDeclarations.Keys)
{
Assert.True(foundDeclarations[name],
"Expected to find declaration '" + name + "' in list of intellisense declarations, but didn't.");
}
return declarations;
}