示例#1
0
        public void SetFieldWithStringTest()
        {
            var container = new DummyContainer();

            container.SetField("_myField", "FieldValue2");
            Assert.Equal("FieldValue2", container.MyField);
        }
示例#2
0
        public void SetFieldWithClassTest()
        {
            var container   = new DummyContainer();
            var newInstance = new Implementation();

            container.SetField("_instance", newInstance);
            Assert.Equal(newInstance, container.Instance);
        }