Пример #1
0
        public void CreateFunctionMetaData_ShouldReturnIRfcFunctionMetaData()
        {
            var          connection = new RfcConnection(_interopMock.Object, RfcConfigurationOption);
            RfcErrorInfo errorInfo;

            _interopMock
            .Setup(x => x.GetFunctionDesc(It.IsAny <IntPtr>(), It.IsAny <string>(), out errorInfo))
            .Returns(FunctionDescriptionHandle);

            var functionName = "TEST";
            IRfcFunctionMetaData functionMetaData = connection.CreateFunctionMetaData(functionName);

            functionMetaData.Should().NotBeNull();
        }