UpdateDescription() public method

public UpdateDescription ( string lang, string value ) : void
lang string
value string
return void
Exemplo n.º 1
0
        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");
        }