void ValidateDoorIsInMode(NotificationMessageHolderType notification, DoorMode expectedMode) { ValidateDoorIsInMode(notification, expectedMode.ToString()); }
void ValidateDoorIsNotInMode(NotificationMessageHolderType notification, DoorMode notExpectedMode) { ValidateDoorModeSimpleItem(notification, (s) => s != notExpectedMode.ToString(), (s) => string.Format("Expected: not '{0}', actual: '{1}'", notExpectedMode, s)); }
void ValidateDoorModeSimpleItem(NotificationMessageHolderType notification, DoorMode expectedMode) { ValidateDoorModeSimpleItem(notification, expectedMode.ToString()); }