Beispiel #1
0
 private void AssertEverybodyWillTrigger(string eventName, bool expected)
 {
     //ok, not everybody.  Just everybody other than _house
     Assert(expected == _country.WillTrigger <MouseEvent>(eventName), "Country should " + (expected ? "" : "not") + " WillTrigger " + eventName);
     Assert(expected == _state.WillTrigger <MouseEvent>(eventName), "Stage should " + (expected ? "" : "not") + " WillTrigger " + eventName);
     Assert(expected == _city.WillTrigger <MouseEvent>(eventName), "City should " + (expected ? "" : "not") + " WillTrigger " + eventName);
     Assert(!_house.WillTrigger <MouseEvent>(eventName), "House should not WillTrigger " + eventName);
 }