From 9f07554fa9573837efe42b75f9d285c835cf70af Mon Sep 17 00:00:00 2001 From: Bruno Garcia Date: Sun, 6 Jan 2019 17:38:32 +0100 Subject: [PATCH] test: SentryId ToString --- test/Sentry.Protocol.Tests/SentryIdTests.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/Sentry.Protocol.Tests/SentryIdTests.cs diff --git a/test/Sentry.Protocol.Tests/SentryIdTests.cs b/test/Sentry.Protocol.Tests/SentryIdTests.cs new file mode 100644 index 0000000..382ce5e --- /dev/null +++ b/test/Sentry.Protocol.Tests/SentryIdTests.cs @@ -0,0 +1,16 @@ +using System; +using Xunit; + +namespace Sentry.Protocol.Tests +{ + public class SentryIdTests + { + [Fact] + public void ToString_Equal_GuidToStringN() + { + var expected = Guid.NewGuid(); + SentryId actual = expected; + Assert.Equal(expected.ToString("N"), actual.ToString()); + } + } +}