public void ValidMessage_SetsMessage() { var message = "Expected message."; UiMessage userMessage = message; Assert.Equal(message, userMessage.Message); }
public void WhiteSpaceMessage_Throws() { string message = " "; Assert.Throws <ArgumentException>("message", () => { UiMessage result = message; }); }
public void NullMessage_Throws() { string?message = null; Assert.Throws <ArgumentNullException>("message", () => { UiMessage result = message !; }); }