Beispiel #1
0
        public void Test_EmptyMessage()
        {
            // Arrange
            string messageRequest = "";

            // Act out
            TR actualResponse = new TR();

            // Assert
            Assert.True(string.IsNullOrEmpty(actualResponse.Translate(messageRequest, "Spanish").Result));
        }
Beispiel #2
0
        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));
        }
Beispiel #3
0
        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));
        }