Beispiel #1
0
        public void ConvertSDKUnrecognizedMessageStatusToAPIUnknownValue()
        {
            apiMessageStatus1 = "NEWLY_ADDED_MESSAGE_STATUS";
            MessageStatus unrecognizedMessageStatus = MessageStatus.valueOf(apiMessageStatus1);
            string        acutalAPIValue            = new MessageStatusConverter(unrecognizedMessageStatus).ToAPIMessageStatus();

            Assert.AreEqual(apiMessageStatus1, acutalAPIValue);
        }
Beispiel #2
0
        public void whenBuildingMessageStatusWithUnknownAPIValueThenUNRECOGNIZEDMessageStatusIsReturned()
        {
            string expectedSDKValue = "UNRECOGNIZED";


            MessageStatus classUnderTest = MessageStatus.valueOf("ThisMessageStatusDoesNotExistINSDK");
            String        actualSDKValue = classUnderTest.getSdkValue();


            Assert.AreEqual(expectedSDKValue, actualSDKValue);
        }
Beispiel #3
0
        public void whenBuildingMessageStatusWithAPIValueTRASHEDThenTRASHEDMessageStatusIsReturned()
        {
            string expectedSDKValue = "TRASHED";


            MessageStatus classUnderTest = MessageStatus.valueOf("TRASHED");
            String        actualSDKValue = classUnderTest.getSdkValue();


            Assert.AreEqual(expectedSDKValue, actualSDKValue);
        }