コード例 #1
0
        public void whenBuildingFieldStyleWithAPIValueTEXTFIELDThenUNBOUND_TEXT_FIELDFieldStyleIsReturned()
        {
            string expectedSDKValue = "UNBOUND_TEXT_FIELD";


            FieldStyle classUnderTest = FieldStyle.valueOf("TEXTFIELD");
            string     actualSDKValue = classUnderTest.getSdkValue();


            Assert.AreEqual(expectedSDKValue, actualSDKValue);
        }
コード例 #2
0
        public void whenBuildingFieldStyleWithUnknownAPIValueThenUNRECOGNIZEDFieldStyleIsReturned()
        {
            string expectedSDKValue = "UNRECOGNIZED";


            FieldStyle classUnderTest = FieldStyle.valueOf("ThisFieldStyleDoesNotExistInSDK");
            String     actualSDKValue = classUnderTest.getSdkValue();


            Assert.AreEqual(expectedSDKValue, actualSDKValue);
        }
コード例 #3
0
        public void whenBuildingFieldStyleWithAPIValueQRCODEThenBOUND_QRCODEFieldStyleIsReturned()
        {
            string expectedSDKValue = "BOUND_QRCODE";


            FieldStyle classUnderTest = FieldStyle.valueOf("QRCODE");
            string     actualSDKValue = classUnderTest.getSdkValue();


            Assert.AreEqual(expectedSDKValue, actualSDKValue);
        }
コード例 #4
0
        public void whenBuildingFieldStyleWithAPIValueSEALThenSEALFieldStyleIsReturned()
        {
            string expectedSDKValue = "SEAL";


            FieldStyle classUnderTest = FieldStyle.valueOf("SEAL");
            string     actualSDKValue = classUnderTest.getSdkValue();


            Assert.AreEqual(expectedSDKValue, actualSDKValue);
        }
コード例 #5
0
        public void whenBuildingFieldStyleWithAPIValueLISTThenDROP_LISTFieldStyleIsReturned()
        {
            string expectedSDKValue = "DROP_LIST";


            FieldStyle classUnderTest = FieldStyle.valueOf("LIST");
            string     actualSDKValue = classUnderTest.getSdkValue();


            Assert.AreEqual(expectedSDKValue, actualSDKValue);
        }
コード例 #6
0
        public void whenBuildingFieldStyleWithAPIValueTEXT_AREAThenTEXT_AREAFieldStyleIsReturned()
        {
            string expectedSDKValue = "TEXT_AREA";


            FieldStyle classUnderTest = FieldStyle.valueOf("TEXTAREA");
            string     actualSDKValue = classUnderTest.getSdkValue();


            Assert.AreEqual(expectedSDKValue, actualSDKValue);
        }
コード例 #7
0
        public void whenBuildingFieldStyleWithAPIValueRADIOThenUNBOUND_RADIO_BUTTONFieldStyleIsReturned()
        {
            string expectedSDKValue = "UNBOUND_RADIO_BUTTON";


            FieldStyle classUnderTest = FieldStyle.valueOf("RADIO");
            string     actualSDKValue = classUnderTest.getSdkValue();


            Assert.AreEqual(expectedSDKValue, actualSDKValue);
        }
コード例 #8
0
        public void whenBuildingFieldStyleWithAPIValueCHECKBOXThenUNBOUND_CHECK_BOXFieldStyleIsReturned()
        {
            string expectedSDKValue = "UNBOUND_CHECK_BOX";


            FieldStyle classUnderTest = FieldStyle.valueOf("CHECKBOX");
            string     actualSDKValue = classUnderTest.getSdkValue();


            Assert.AreEqual(expectedSDKValue, actualSDKValue);
        }