Ejemplo n.º 1
0
        public override void ConvertAPIToSDK()
        {
            Silanis.ESL.API.ReferencedFieldConditions apiConditions = createApiReferencedFieldConditionsForTest();

            Silanis.ESL.API.ReferencedField api = new Silanis.ESL.API.ReferencedField();
            api.FieldId    = FIELD_1_ID;
            api.Conditions = apiConditions;

            ReferencedField sdk = ReferencedFieldConverter.ToSDK(api);

            Assert.AreEqual(sdk.FieldId, FIELD_1_ID);
            Assert.IsTrue(compareReferencedFieldConditions(apiConditions, sdk.Conditions));
        }
Ejemplo n.º 2
0
        public override void ConvertNullAPIToSDK()
        {
            ReferencedField sdk = ReferencedFieldConverter.ToSDK(null);

            Assert.IsNull(sdk);
        }