Exemple #1
0
        public void SetValueTest(string name)
        {
            ModelTest model = new ModelTest {
                Name = "Name1"
            };
            ColumnMapping mapping = new ColumnMapping()
            {
                Info = model.GetType().GetProperty("Name")
            };

            mapping.SetValue(model, name);
            Assert.AreEqual(name, model.Name);
        }