public void ToString_ReturnsFormattedString() { Guid arg = Guid.NewGuid(); SentryMessage message = new SentryMessage("Format something {0:N} in here", arg); Assert.That(message.ToString(), Is.StringContaining(arg.ToString("N"))); }
public void ToString_ReturnsMessage() { string stringMessage = Guid.NewGuid().ToString("N"); SentryMessage message = new SentryMessage(stringMessage); Assert.That(message.ToString(), Is.EqualTo(stringMessage)); }
public void String_IsImplicitlyConvertedTo_Message() { SentryMessage message = "Hello"; Assert.That(message.ToString(), Is.EqualTo("Hello")); }