public void Set_Value_Sets_Underlying_Value()
 {
     var adapter = new PropertyInfoAdapter(_testProperty);
     var guid = Guid.NewGuid().ToString("N");
     adapter.SetValue(_tester, guid, null);
     Assert.AreEqual(guid, adapter.GetValue(_tester, null));
 }
 public void Property_Type_Returns_Underlying_Property_Type()
 {
     var adapter = new PropertyInfoAdapter(_testProperty);
     Assert.AreEqual(typeof(string), adapter.PropertyType);
 }
 public void Get_Value_Returns_Underlying_Value()
 {
     var adapter = new PropertyInfoAdapter(_testProperty);
     Assert.AreEqual("Test", adapter.GetValue(_tester, null));
 }
 public void Name_Returns_Underlying_Name()
 {
     var adapter = new PropertyInfoAdapter(_testProperty);
     Assert.AreEqual("TestProperty", adapter.Name);
 }
 public void Get_Custom_Attributes_Returns_Underlying_Attributes()
 {
     var adapter = new PropertyInfoAdapter(_testPropertyWithAttribute);
     var attributes = adapter.GetCustomAttributes(typeof (System.ComponentModel.DescriptionAttribute), false);
     Assert.AreEqual(1, attributes.Length);
 }