public void TestSerializationWithoutFormula() { AmountObserverBuilder x1 = CreateObject <AmountObserverBuilder>(); x1.ForAll = true; x1.ContainerCriteria = Create.Criteria(x => x.With("Organ").And.Not("Compartment").And.InContainer("Liver").And.NotInContainer("Cell")); x1.Dimension = DimensionLength; IAmountObserverBuilder x2 = SerializeAndDeserialize(x1); AssertForSpecs.AreEqualAmountObserverBuilder(x2, x1); }
public void TestSerializationWithoutFormula() { AmountObserverBuilder x1 = CreateObject <AmountObserverBuilder>(); x1.ForAll = true; x1.ContainerCriteria = new DescriptorCriteria(); x1.ContainerCriteria.Add(new MatchTagCondition("Organ")); x1.ContainerCriteria.Add(new NotMatchTagCondition("Organ")); x1.Dimension = DimensionLength; IAmountObserverBuilder x2 = SerializeAndDeserialize(x1); AssertForSpecs.AreEqualAmountObserverBuilder(x2, x1); }