public void ConvertSDKUnrecognizedTextAnchorPositionToAPIUnknownValue() { apiTextAnchorPosition1 = "NEWLY_ADDED_TEXT ANCHOR POSITION"; TextAnchorPosition unrecognizedTextAnchorPosition = TextAnchorPosition.valueOf(apiTextAnchorPosition1); string acutalApiScheme = new TextAnchorPositionConverter(unrecognizedTextAnchorPosition).ToAPIAnchorPoint(); Assert.AreEqual(apiTextAnchorPosition1, acutalApiScheme); }
public void TestTextAnchorPosition() { foreach (TextAnchorPosition textAnchorPosition in TextAnchorPosition.Values()) { Assert.IsNotNull(textAnchorPosition.ToString()); Assert.IsNotEmpty(textAnchorPosition.ToString()); } Assert.AreEqual(0, (int)TextAnchorPosition.TOPLEFT); Assert.AreEqual("TOPRIGHT", (string)TextAnchorPosition.TOPRIGHT); Assert.AreEqual("BOTTOMLEFT", TextAnchorPosition.BOTTOMLEFT.GetName()); }
public TextAnchorPosition ToSDKTextAnchorPosition() { if (sdkPosition != null) { return(sdkPosition); } else { return(TextAnchorPosition.valueOf(apiAnchorPoint)); } }
public TextAnchorPositionConverter(TextAnchorPosition sdkPosition) { this.sdkPosition = sdkPosition; }
public TextAnchorBuilder AtPosition( TextAnchorPosition position ) { this.position = position; return this; }