public void WhenSettingTypeOnObjectField_ShouldSetTypeToTypeProvided() { ObjectField field = new ObjectField(); Handler.SetTypeOnObjectField(field, typeof(TestHelpers.TestObject)); Assert.AreSame( typeof(TestHelpers.TestObject), field.objectType); }
public void WhenSettingTypeOnNull_ShouldNotError() { Handler.SetTypeOnObjectField(null, typeof(TestHelpers.TestObject)); }