public void TestSerializationMoleculeAmountWithFixedValue() { MoleculeAmount x1 = CreateObject <MoleculeAmount>().WithName("Monica").WithDimension(DimensionLength); x1.Persistable = true; x1.Value = 2.3; x1.ScaleDivisor = 0.345; IMoleculeAmount x2 = SerializeAndDeserialize(x1); AssertForSpecs.AreEqualMoleculeAmount(x2, x1); }