public void IsCombinableWith_ReturnsFalse_IfDifferentSegmentType()
        {
            var segment1 = createMethodSegmentBuilder(new TimeSpan(), TimeSpan.FromSeconds(2), 2, 1, new MethodCallData("type", "method", 1), Enumerable.Empty <KeyValuePair <string, object> >(), "declaredType", "declaredMethod", true);
            var segment2 = SimpleSegmentDataTests.createSimpleSegmentBuilder(new TimeSpan(), TimeSpan.FromSeconds(2), 2, 1, new MethodCallData("type", "method", 1), Enumerable.Empty <KeyValuePair <string, object> >(), "name", true);

            Assert.IsFalse(segment1.IsCombinableWith(segment2));
        }
Пример #2
0
        public void IsCombinableWith_ReturnsFalse_IfDifferentSegmentType()
        {
            var segment1 = createExternalSegmentBuilder(new TimeSpan(), TimeSpan.FromSeconds(2), 2, 1, new MethodCallData("type", "method", 1), Enumerable.Empty <KeyValuePair <string, object> >(), new Uri("http://www.google.com"), "declaredMethod", new CrossApplicationResponseData("cpId", "name", 1.1f, 2.2f, 3), true);
            var segment2 = SimpleSegmentDataTests.createSimpleSegmentBuilder(new TimeSpan(), TimeSpan.FromSeconds(2), 2, 1, new MethodCallData("type", "method", 1), Enumerable.Empty <KeyValuePair <string, object> >(), "name", true);

            Assert.IsFalse(segment1.IsCombinableWith(segment2));
        }