public void SerializeCompareValueString()
 {
     IfTruthCondition rootCondition = new IfTruthCondition();
     TruthConditionList conditionList = new TruthConditionList();
     CompareTruthCondition compareCondition = new CompareTruthCondition();
     conditionList.Add(compareCondition);
     rootCondition.Value = conditionList;
     CompareDefinition compareDefinition = new CompareDefinition();
     compareCondition.Value = compareDefinition;
     compareDefinition.Value = "test";
     string serialized = JsonConvert.SerializeObject(rootCondition);
     Assert.IsTrue(serialized.Contains("\"Value\":\"test\""));
 }
 public void SerializeCompareValueArray()
 {
     IfTruthCondition rootCondition = new IfTruthCondition();
     TruthConditionList conditionList = new TruthConditionList();
     CompareTruthCondition compareCondition = new CompareTruthCondition();
     conditionList.Add(compareCondition);
     rootCondition.Value = conditionList;
     CompareDefinition compareDefinition = new CompareDefinition();
     compareCondition.Value = compareDefinition;
     compareDefinition.Value = new[] { "test1", "test2" };
     string serialized = JsonConvert.SerializeObject(rootCondition);
     Assert.IsTrue(serialized.Contains("\"Value\":[\"test1\",\"test2\"]"));
 }