public void StatusMessage_AddMultipleMessages_GetHighestSeverity() { var messages = new[] { new StatusMessage(MessageSeverity.None, "How many say Sharp Shot is teh roXXo0rz?"), new StatusMessage(MessageSeverity.Warning, "You'll never do it in time!"), new StatusMessage(MessageSeverity.Error, "END OF LINE"), new StatusMessage(MessageSeverity.Status, "The code! The code! Figure out the code!"), new StatusMessage(MessageSeverity.None, "Flak! Flack! Watch for flak!"), }; StatusMessage.AddMessages(this, messages); Assert.Equal(MessageSeverity.Error, StatusMessage.GetOverallSeverity()); StatusMessage.ClearMessages(); }