public void GetLanguage_ReturnsLanguage_String() { //Arrange string inputCountryCode = "TST"; string inputLanguage = "test-Language"; bool inputIsOfficial = true; float inputPercentage = 4.0f; CountryLanguage testCountryLanguage = new CountryLanguage(inputCountryCode, inputLanguage, inputIsOfficial, inputPercentage); //Act string resultLanguage = testCountryLanguage.GetLanguage(); //Assert Assert.AreEqual("test-Language", resultLanguage); }
public void SetLanguage_UpdatesLanguage_Void() { //Arrange string inputCountryCode = "TST"; string inputLanguage = "test-Language"; bool inputIsOfficial = true; float inputPercentage = 4.0f; CountryLanguage testCountryLanguage = new CountryLanguage(inputCountryCode, inputLanguage, inputIsOfficial, inputPercentage); //Act string inputLanguageUpdate = "test-Language01"; testCountryLanguage.SetLanguage(inputLanguageUpdate); string resultLanguage = testCountryLanguage.GetLanguage(); //Assert Assert.AreEqual("test-Language01", resultLanguage); }