示例#1
0
 static TextAnchorPosition()
 {
     allTextAnchorPositions.Add(TOPLEFT.getApiValue(), TextAnchorPosition.TOPLEFT);
     allTextAnchorPositions.Add(TOPRIGHT.getApiValue(), TextAnchorPosition.TOPRIGHT);
     allTextAnchorPositions.Add(BOTTOMLEFT.getApiValue(), TextAnchorPosition.BOTTOMLEFT);
     allTextAnchorPositions.Add(BOTTOMRIGHT.getApiValue(), TextAnchorPosition.BOTTOMRIGHT);
 }
示例#2
0
        public void ConvertAPIBOTTOMRIGHTToBOTTOMRIGHTTextAnchorPosition()
        {
            apiTextAnchorPosition1 = "BOTTOMRIGHT";
            sdkTextAnchorPosition1 = new TextAnchorPositionConverter(apiTextAnchorPosition1).ToSDKTextAnchorPosition();

            Assert.AreEqual(apiTextAnchorPosition1, sdkTextAnchorPosition1.getApiValue());
        }
示例#3
0
        public void ConvertAPIUnknonwnValueToUnrecognizedTextAnchorPosition()
        {
            apiTextAnchorPosition1 = "NEWLY_ADDED_TEXT ANCHOR POSITION";
            sdkTextAnchorPosition1 = new TextAnchorPositionConverter(apiTextAnchorPosition1).ToSDKTextAnchorPosition();

            Assert.AreEqual(sdkTextAnchorPosition1.getApiValue(), apiTextAnchorPosition1);
        }
示例#4
0
        public void ConvertAPITOPLEFTToTOPLEFTTextAnchorPosition()
        {
            apiTextAnchorPosition1 = "TOPLEFT";
            sdkTextAnchorPosition1 = new TextAnchorPositionConverter(apiTextAnchorPosition1).ToSDKTextAnchorPosition();

            Assert.AreEqual(apiTextAnchorPosition1, sdkTextAnchorPosition1.getApiValue());
        }