Exemple #1
0
        public void TestSerializationEmptyFormulaUsable()
        {
            Observer       x1 = CreateObject <Observer>().WithName("Obasi");
            IFormulaUsable x2 = SerializeAndDeserialize(x1);

            AssertForSpecs.AreEqualFormulaUsable(x2, x1);
        }
Exemple #2
0
        public void TestSerializationNonEmptyFormulaUsable()
        {
            Observer x1 = CreateObject <Observer>().WithName("Obasi").WithDimension(DimensionLength);

            x1.Value = 2.3D;
            IFormulaUsable x2 = SerializeAndDeserialize(x1);

            AssertForSpecs.AreEqualFormulaUsable(x2, x1);
        }