public void find_default_header_for_the_attribute() { var token = new PropertyToken { ParentType = typeof(PropertyTokenTarget), PropertyName = "Name" }; token.FindDefaultHeader(new CultureInfo("en-US")).ShouldEqual("The Name"); token.FindDefaultHeader(new CultureInfo("en-CA")).ShouldEqual("Different"); token.FindDefaultHeader(new CultureInfo("ja-JP")).ShouldBeNull(); }
public void find_default_header_for_property_that_is_not_decorated_should_just_return_null() { var token = new PropertyToken { ParentType = typeof(PropertyTokenTarget), PropertyName = "NotDecorated" }; token.FindDefaultHeader(new CultureInfo("en-US")).ShouldBeNull(); }