public static IntellisenseDeclarations AssertNonPresenceOf(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.False(foundDeclarations[name],
"Expected to NOT find declaration '" + name + "' in list of intellisense declarations, but did.");
}
return declarations;
}