예제 #1
0
        public void Datastore_serializer_must_parameterize_properties()
        {
            var entity     = new TestModel();
            var serialized = new DatastoreSerializer <TestModel>().SerializeEntity(entity);

            Assert.Equal(serialized.Properties.Count, typeof(TestModel).GetProperties().Count(x => x.GetValue(entity, null) != null));
        }
예제 #2
0
 public void Datastore_serializer_must_parameterize_properties()
 {
     var entity = new TestModel();
     var serialized = new DatastoreSerializer<TestModel>().SerializeEntity(entity);
     Assert.Equal(serialized.Properties.Count, typeof(TestModel).GetProperties().Count(x => x.GetValue(entity, null) != null));
 }