/// <summary> Returns the human readable value of the boolean property. </summary> /// <param name="value"> The <see cref="bool"/> value to be formatted. </param> /// <returns> The human readable string value of the boolean property. </returns> /// <remarks> The value of this property may depend on the current culture. </remarks> public string GetDisplayName(bool value) { return(BindableObjectGlobalizationService.GetBooleanValueDisplayName(value)); }
public void GetBooleanValueDisplayName() { Assert.That(_globalizationService.GetBooleanValueDisplayName(true), Is.EqualTo("Yes")); Assert.That(_globalizationService.GetBooleanValueDisplayName(false), Is.EqualTo("No")); }