public void TestMethod1() { var config = new List <KeyValuePair <string, string> > { new KeyValuePair <string, string>("setting-1", "value1"), new KeyValuePair <string, string>("Config2", "value2") }; MyConfig objectToBind = BindingHelpers.Bind <MyConfig>(config); Assert.AreEqual(objectToBind.Config1, "value1"); Assert.AreEqual(objectToBind.Config2, "value2"); }