public void HashCodeShouldVaryIfSpanIdsAreNotEqual() { var spanState1 = new SpanState(TraceIdHigh, TraceId, null, 1, IsSampled, IsDebug); var spanState2 = new SpanState(TraceIdHigh, TraceId, null, 2, IsSampled, IsDebug); Assert.AreNotEqual(spanState1.GetHashCode(), spanState2.GetHashCode()); }
public void HashCodeShouldVaryIfSpanIdsAreNotEqual() { var spanState1 = new SpanState(traceIdHigh, traceId, null, 1, flags); var spanState2 = new SpanState(traceIdHigh, traceId, null, 2, flags); Assert.AreNotEqual(spanState1.GetHashCode(), spanState2.GetHashCode()); }