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)); }
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)); }