public void ConvertSDKToSDK()
 {
     sdkFieldCondition1 = CreateTypicalSDKFieldCondition();
     converter          = new FieldConditionConverter(sdkFieldCondition1);
     sdkFieldCondition2 = converter.ToSDKFieldCondition();
     Assert.IsNotNull(sdkFieldCondition2);
     Assert.AreEqual(sdkFieldCondition2, sdkFieldCondition1);
 }
        public void ConvertSDKToAPI()
        {
            sdkFieldCondition1 = CreateTypicalSDKFieldCondition();
            apiFieldCondition1 = new FieldConditionConverter(sdkFieldCondition1).ToAPIFieldCondition();

            Assert.IsNotNull(apiFieldCondition1);
            Assert.AreEqual(sdkFieldCondition1.Id, apiFieldCondition1.Id);
            Assert.AreEqual(sdkFieldCondition1.Condition, apiFieldCondition1.Condition);
            Assert.AreEqual(sdkFieldCondition1.Action, apiFieldCondition1.Action);
        }
        public void ConvertAPIToSDK()
        {
            apiFieldCondition1 = CreateTypicalAPIFieldCondition();
            sdkFieldCondition1 = new FieldConditionConverter(apiFieldCondition1).ToSDKFieldCondition();

            Assert.IsNotNull(sdkFieldCondition1);
            Assert.AreEqual(sdkFieldCondition1.Id, apiFieldCondition1.Id);
            Assert.AreEqual(sdkFieldCondition1.Condition, apiFieldCondition1.Condition);
            Assert.AreEqual(sdkFieldCondition1.Action, apiFieldCondition1.Action);
        }
 public void ConvertNullSDKToSDK()
 {
     sdkFieldCondition1 = null;
     converter          = new FieldConditionConverter(sdkFieldCondition1);
     Assert.IsNull(converter.ToSDKFieldCondition());
 }