public override void ConvertAPIToSDK() { List <Silanis.ESL.API.FieldCondition> apiFieldConditionsReferencedInCondition = createApiFieldConditionsForTest(CONDITION_1_ID, FIELD_1_ID, FIELD_2_ID); List <Silanis.ESL.API.FieldCondition> apiFieldConditionsReferencedInAction = new List <Silanis.ESL.API.FieldCondition>(); Silanis.ESL.API.ReferencedFieldConditions api = new Silanis.ESL.API.ReferencedFieldConditions(); api.ReferencedInCondition = apiFieldConditionsReferencedInCondition; api.ReferencedInAction = apiFieldConditionsReferencedInAction; ReferencedFieldConditions sdk = ReferencedFieldConditionsConverter.ToSDK(api); Assert.IsTrue(compareFieldConditions(apiFieldConditionsReferencedInCondition, sdk.ReferencedInCondition)); Assert.IsTrue(compareFieldConditions(apiFieldConditionsReferencedInAction, sdk.ReferencedInAction)); }
public override void ConvertNullAPIToSDK() { ReferencedFieldConditions sdk = ReferencedFieldConditionsConverter.ToSDK(null); Assert.IsNull(sdk); }