public abstract void Method(StructType value);
protected StructConstructorBase(StructType value) { }
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" })); }