예제 #1
0
 public abstract void Method(StructType value);
예제 #2
0
 protected StructConstructorBase(StructType value)
 {
 }
예제 #3
0
 public virtual void Method(StructType value)
 {
 }
예제 #4
0
        public void CreateProxyFromInterfaceWithStructRefParameterTest()
        {
            // Arrange
            var invocationHandler = new GetParametersInvocationHandler();

            // Act
            var proxy = _proxyFactory.CreateProxy<IStructRefParameter>(Type.EmptyTypes, invocationHandler);
            var value = new StructType { Integer = 2, String = "2" };

            proxy.Method(ref value);

            // Assert
            Assert.That(invocationHandler.Parameters[0], Is.EqualTo(new StructType { Integer = 2, String = "2" }));
        }