Exemplo n.º 1
0
        private static Mock <IVariableAccess> GeneralVariable(string[] identifier)
        {
            var identifieMock = MockIdentifier.FieldIdentifier(identifier);

            var variable = new Mock <IVariableAccess>();

            variable.Setup(x => x.Identifier).Returns(identifieMock);
            return(variable);
        }
Exemplo n.º 2
0
        private static Mock <IMethodInvocation> GeneralInvokedMethod(string[] identifiers)
        {
            var identifiedMock = MockIdentifier.FieldIdentifier(identifiers);
            var invokedMethod  = new Mock <IMethodInvocation>();

            invokedMethod.Setup(x => x.Identifier).Returns(identifiedMock);

            return(invokedMethod);
        }