public void GetObjectValueThrowsIfNullTargetType() { TypeDescriptionHelper.GetObjectValue("2", null, String.Empty); }
public void GetObjectValueReturnsNullIfValueIsNull() { object result = TypeDescriptionHelper.GetObjectValue(null, typeof(string), String.Empty); Assert.IsNull(result); }
public void GetObjectValueThrowsIfInvalidStringToInt() { object result = TypeDescriptionHelper.GetObjectValue("a", typeof(int), String.Empty); }