public void PropertyOverrideWithBuildUp() { MySimpleTypeForPropertyOverride instance = new MySimpleTypeForPropertyOverride(); instance.X = 111; PropertyOverride overrideParam = new PropertyOverride("X", 222); IUnityContainer container = new UnityContainer(); var result = container.BuildUp <MySimpleTypeForPropertyOverride>(instance, overrideParam); Assert.AreEqual <int>(222, result.X); }
public void PropertyOverrideWithBuildUp() { MySimpleTypeForPropertyOverride instance = new MySimpleTypeForPropertyOverride(); instance.X = 111; PropertyOverride overrideParam = new PropertyOverride("X", 222); IUnityContainer container = new UnityContainer(); var result = container.BuildUp<MySimpleTypeForPropertyOverride>(instance, overrideParam); Assert.AreEqual<int>(222, result.X); }