Exemplo n.º 1
0
        /// <summary>
        /// Setups order of invocation logging for the mock.
        /// </summary>
        /// <typeparam name="TMock">The type of the mock.</typeparam>
        /// <typeparam name="TResult">The type of the result.</typeparam>
        /// <param name="mock">The mock.</param>
        /// <param name="expression">The expression.</param>
        public void Setup <TMock, TResult>(Mock <TMock> mock, Expression <Func <TMock, TResult> > expression) where TMock : class
        {
            var key = new MockExpressionKey(mock, expression);

            Invocations[key] = new ExpressionInvocationLogger();
        }
 public void TestInitialize()
 {
     logger1 = new ExpressionInvocationLogger();
     logger2 = new ExpressionInvocationLogger();
 }