Beispiel #1
0
        public void MultistageMigration()
        {
            var serializer = new fsSerializer();

            var model_v1 = new VersionedModel_v1 {
                A = 3
            };
            fsData serialized;

            serializer.TrySerialize(model_v1, out serialized).AssertSuccessWithoutWarnings();

            var model_v2 = new VersionedModel_v2();

            serializer.TryDeserialize(serialized, ref model_v2).AssertSuccessWithoutWarnings();
            Assert.AreEqual(model_v1.A, model_v2.B);
        }
Beispiel #2
0
 //public VersionedModel_v2() { }
 public VersionedModel_v2(VersionedModel_v1 model)
 {
     B = model.A;
 }
Beispiel #3
0
 public VersionedModelDuplicateVersionString(VersionedModel_v1 model)
 {
 }