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); }
public void ConvertAPIBOTTOMRIGHTToBOTTOMRIGHTTextAnchorPosition() { apiTextAnchorPosition1 = "BOTTOMRIGHT"; sdkTextAnchorPosition1 = new TextAnchorPositionConverter(apiTextAnchorPosition1).ToSDKTextAnchorPosition(); Assert.AreEqual(apiTextAnchorPosition1, sdkTextAnchorPosition1.getApiValue()); }
public void ConvertAPIUnknonwnValueToUnrecognizedTextAnchorPosition() { apiTextAnchorPosition1 = "NEWLY_ADDED_TEXT ANCHOR POSITION"; sdkTextAnchorPosition1 = new TextAnchorPositionConverter(apiTextAnchorPosition1).ToSDKTextAnchorPosition(); Assert.AreEqual(sdkTextAnchorPosition1.getApiValue(), apiTextAnchorPosition1); }
public void ConvertAPITOPLEFTToTOPLEFTTextAnchorPosition() { apiTextAnchorPosition1 = "TOPLEFT"; sdkTextAnchorPosition1 = new TextAnchorPositionConverter(apiTextAnchorPosition1).ToSDKTextAnchorPosition(); Assert.AreEqual(apiTextAnchorPosition1, sdkTextAnchorPosition1.getApiValue()); }