public void TestSerialization() { EventAssignmentBuilder x1 = CreateObject <EventAssignmentBuilder>().WithName("Eva.Builder").WithDimension(DimensionLength); x1.UseAsValue = true; x1.ObjectPath = new ObjectPath(new string[] { "aa", "bb" }); x1.Dimension = DimensionLength; x1.Formula = CreateObject <ConstantFormula>().WithDimension(DimensionLength).WithValue(23.4); IEventAssignmentBuilder x2 = SerializeAndDeserialize(x1); AssertForSpecs.AreEqualEventAssignmentBuilder(x1, x2); }