public void TestSerializationEmptyProcess() { Transport x1 = CreateObject <Transport>().WithName("Proton"); IProcess x2 = SerializeAndDeserialize(x1); AssertForSpecs.AreEqualProcess(x2, x1); }
public void TestSerializationNonEmptyProcess() { Transport x1 = CreateObject <Transport>() .WithName("Proton").WithDimension(DimensionLength); x1.Formula = CreateObject <ConstantFormula>().WithDimension(DimensionLength).WithValue(23.4); IProcess x2 = SerializeAndDeserialize(x1); AssertForSpecs.AreEqualProcess(x2, x1); }