public void Test_EmptyMessage() { // Arrange string messageRequest = ""; // Act out TR actualResponse = new TR(); // Assert Assert.True(string.IsNullOrEmpty(actualResponse.Translate(messageRequest, "Spanish").Result)); }
public void Test_ValidMessageResponse() { // Arrange string messageRequest = "valid message"; string messageResponse = "mensaje válido"; // Act out TR actualResponse = new TR(); // Assert Assert.True(actualResponse.Translate(messageRequest, "spanish").Result.Equals(messageResponse)); }
public void Test_EmptyLanguage() { // Arrange string messageRequest = "valid message"; string emptyLanguage = ""; // Act out TR actualResponse = new TR(); // Assert Assert.True(string.IsNullOrEmpty(actualResponse.Translate(messageRequest, emptyLanguage).Result)); }