Пример #1
0
 public void SetFieldWithClassTest()
 {
     var container = new DummyContainer();
     var newInstance = new Implementation();
     container.SetField("_instance", newInstance);
     Assert.AreEqual(newInstance, container.Instance);
 }
Пример #2
0
 public void SetFieldWithStringTest()
 {
     var container = new DummyContainer();
     container.SetField("_myField", "FieldValue2");
     Assert.AreEqual("FieldValue2", container.MyField);
 }