public void WrapperHasEntity() { var target = _app.Pin<ITargetWrapper, Target>(); DataWrapperAndAppVarOwner data = new DataWrapperAndAppVarOwner(_app.Type<Data>()()); data.A = 103; int a = 0; string b = string.Empty; target.GetOut(ref data, ref a, ref b); Assert.AreEqual(103, (int)_app.Type<Target>().InputData.A); Assert.AreEqual(3, (int)data.A); }
public void WrapperHasEntity() { var target = _app.Pin<ITargetWrapper, Target>(); DataWrapperAndAppVarOwner data = new DataWrapperAndAppVarOwner(_app.Type<Data>()()); data.A = 10; int a; string b; target.GetOut(out data, out a, out b); Assert.AreEqual(3, (int)data.A); }