public string GetDescription()
{
CultureInfo defaultCultureInfo = new CultureInfo("en-US");
return GetDescription(defaultCultureInfo);
}
Localized::GetDescription ( |
|
Localized::GetDescription ( string lang ) : string |
public void Localized_UpdateDescription_IfDescriptionExistsUpdate_IfNotCreateNewOnThisLanguage() { //arrange Localized loc = new Localized("en-US", "White Rice with Corn"); //act loc.UpdateDescription("en-US", "Potato"); //Assert Assert.AreEqual(loc.GetDescription("en-US"), "Potato"); }