예제 #1
0
        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());
        }
예제 #2
0
        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());
        }