Exemplo n.º 1
0
        public void TestSerialization()
        {
            var x1 = new PKParameter {
                Description = "one pk parameter", Name = "Cmax", DisplayName = "The CMax", Dimension = DimensionLength
            };
            var x2 = SerializeAndDeserialize(x1);

            AssertForSpecs.AreEqualPKParameter(x1, x2);
        }
        public void TestSerialization()
        {
            var x1 = new PKParameterRepository();

            x1.Add(new PKParameter {
                Description = "one pk parameter", Name = "Cmax", DisplayName = "The CMax", Dimension = DimensionLength
            });
            x1.Add(new PKParameter {
                Description = "one pk parameter", Name = "Tmax", DisplayName = "The TMax", Dimension = DimensionLength
            });
            var x2 = SerializeAndDeserialize(x1);

            Assert.AreEqual(x1.All().Count(), x2.All().Count());
            foreach (var pkParameterMetaData in x1.All())
            {
                AssertForSpecs.AreEqualPKParameter(pkParameterMetaData, x2.All().FindByName(pkParameterMetaData.Name));
            }
        }