Example #1
0
 public abstract void Method(StructType value);
Example #2
0
 protected StructConstructorBase(StructType value)
 {
 }
Example #3
0
 public virtual void Method(StructType value)
 {
 }
        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" }));
        }