public void SetFieldWithStringTest() { var container = new DummyContainer(); container.SetField("_myField", "FieldValue2"); Assert.Equal("FieldValue2", container.MyField); }
public void SetFieldWithClassTest() { var container = new DummyContainer(); var newInstance = new Implementation(); container.SetField("_instance", newInstance); Assert.Equal(newInstance, container.Instance); }