Пример #1
0
        public void DeserializationWithoutCallTreeElemsTest()
        {
            var callTree = new TestingCallTree(_singleTreeBytes.ConvertToMemoryStream(), _mockCallTreeElemFactory,
                                               _mockMetadataCache.Object);

            Assert.AreEqual(ExpectedThreadId, callTree.ThreadId);
            Assert.AreEqual(ExpectedProfilingDataType, ProfilingDataTypes.Tracing);
            Assert.AreEqual(ExpectedProfilingDataType, callTree.ProfilingDataType);
        }
Пример #2
0
 public void SetUp()
 {
     _twoTreesStream    = _twoTreesBytes.ConvertToMemoryStream();
     _mockMetadataCache = new Mock <MetadataCache <MethodMetadata> >();
     _mockMetadataCache.SetupAllProperties();
     _mockCallTreeElemFactory = new TestingCallTreeElemFactory();
     _callTree1 = new TestingCallTree(_twoTreesStream, _mockCallTreeElemFactory, _mockMetadataCache.Object);
     _callTree2 = new TestingCallTree(_twoTreesStream, _mockCallTreeElemFactory, _mockMetadataCache.Object);
 }