public static void ClassInitialize(TestContext context)
        {
            // get a new build manager after each test
            var dumperMock = new Mock<IMethodCallDumper>();

            // Set up instance method dumps
            dumperMock.Setup(x => x.DumpInstanceMethod(It.IsAny<uint>(), It.IsAny<object>(), It.IsAny<object>(), It.IsAny<string>()))
                .Returns<uint, object, object, string>(
                    (id, obj, retVal, sig) =>
                    {
                        return new Xml.MethodCall()
                        {
                            Id = id,
                            ReturnValue = new Xml.Value(),
                            Signature = sig,
                            PostCallInstance = new Xml.NotNull(),
                            CallType = Xml.MethodCallType.Instance,
                            DynamicCallGraph = new List<Xml.CallGraphNode>()
                        };
                    });

            // Set up void instance method dumps
            dumperMock.Setup(x => x.DumpVoidInstanceMethod(It.IsAny<uint>(), It.IsAny<object>(), It.IsAny<string>()))
                .Returns<uint, object, string>(
                    (id, obj, sig) =>
                    {
                        return new Xml.MethodCall()
                        {
                            Id = id,
                            Signature = sig,
                            PostCallInstance = new Xml.NotNull(),
                            CallType = Xml.MethodCallType.Instance,
                            DynamicCallGraph = new List<Xml.CallGraphNode>()
                        };
                    });

            mockMethodDumper = dumperMock.Object;
        }
 public static void TestCleanup()
 {
     mockMethodDumper = null;
 }