public LogViewerSettings Clone() { return(new LogViewerSettings { LinesScrolledPerWheelTick = LinesScrolledPerWheelTick, FontSize = FontSize, TabWidth = TabWidth, _other = Other.Clone(), _trace = Trace.Clone(), _debug = Debug.Clone(), _info = Info.Clone(), _warning = Warning.Clone(), _error = Error.Clone(), _fatal = Fatal.Clone() }); }
public void Clone_CopyValues() { // Arrange var trace = new Trace { Operation = "op123", Status = SpanStatus.Aborted, IsSampled = false, ParentSpanId = SpanId.Parse("1000000000000000"), SpanId = SpanId.Parse("2000000000000000"), TraceId = SentryId.Parse("75302ac48a024bde9a3b3734a82e36c8") }; // Act var clone = trace.Clone(); // Assert Assert.Equal(trace.Operation, clone.Operation); Assert.Equal(trace.Status, clone.Status); Assert.Equal(trace.IsSampled, clone.IsSampled); Assert.Equal(trace.ParentSpanId, clone.ParentSpanId); Assert.Equal(trace.SpanId, clone.SpanId); Assert.Equal(trace.TraceId, clone.TraceId); }