示例#1
0
        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")));
        }
示例#2
0
        public void ToString_ReturnsMessage()
        {
            string        stringMessage = Guid.NewGuid().ToString("N");
            SentryMessage message       = new SentryMessage(stringMessage);

            Assert.That(message.ToString(), Is.EqualTo(stringMessage));
        }
示例#3
0
        public void String_IsImplicitlyConvertedTo_Message()
        {
            SentryMessage message = "Hello";

            Assert.That(message.ToString(), Is.EqualTo("Hello"));
        }