public void CanCreateInfoMessage() { var message = InfoMessage.Create("infoMessage"); Assert.That(message["type"], Is.EqualTo(InfoMessage.MessageType)); Assert.That(message["message"], Is.EqualTo("infoMessage")); }
private Message ProcessTestOutput(XmlNode testEvent) { var stream = testEvent.Attributes ? ["stream"]; if (stream == null || stream.Value != "Out" && stream.Value != "Progress" && stream.Value != "Error") { return(WarningMessage.Create($"Unexpected test-output event: {testEvent.OuterXml}")); } if (testEvent.InnerText.StartsWith("##utp")) { return(UnityTestProtocolMessageBuilder.Deserialize(testEvent.InnerText)); } if (stream.Value == "Error") { return(ErrorMessage.Create(testEvent.InnerText.TrimEnd())); } return(InfoMessage.Create(testEvent.InnerText.TrimEnd())); }
public void SanityTest() { Assert.That(() => InfoMessage.Create("test"), Throws.Nothing); }