Skip to content

Commit

Permalink
Merge branch 'AddMemoryInfo' of https://github.com/getsentry/sentry-d…
Browse files Browse the repository at this point in the history
…otnet into AddMemoryInfo
  • Loading branch information
SimonCropp committed Dec 16, 2021
2 parents aa844a9 + b914fbf commit b064d72
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/Sentry.Tests/Internals/MemoryInfoTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ public class MemoryInfoTests
[Fact]
public void WriteTo()
{
#if NET5_0_OR_GREATER
var info = new MemoryInfo(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, true, false, new[] {TimeSpan.FromSeconds(1)});
#else
#if NET5_0_OR_GREATER
var info = new MemoryInfo(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, true, false, new[] { TimeSpan.FromSeconds(1) });
#else
var info = new MemoryInfo(1, 2, 3, 4, 5, 6);
#endif
#endif

var stream = new MemoryStream();
var writer = new Utf8JsonWriter(stream, new JsonWriterOptions {Indented = true});
var writer = new Utf8JsonWriter(stream, new JsonWriterOptions { Indented = true });
info.WriteTo(writer, null);
writer.Flush();
var json = Encoding.UTF8.GetString(stream.ToArray());
Expand Down

0 comments on commit b064d72

Please sign in to comment.