public void GetFields() {
			var m = new AllPropertiesMappingManager();
			var fields = m.GetFields(typeof(Entity)).Values;
			Assert.AreEqual(2, fields.Count);
			foreach (var f in fields) {
				if (f.FieldName == "Id")
					Assert.AreEqual("Id", f.Property.Name);
				else if (f.FieldName == "Description")
					Assert.AreEqual("Description", f.Property.Name);
				else
					Assert.Fail("Invalid field '{0}'", f.FieldName);
			}
		}
 public void NoProperties_ShouldReturnEmpty()
 {
     var m = new AllPropertiesMappingManager();
     var props = m.GetFields(typeof (NoProperties));
     Assert.AreEqual(0, props.Count);
 }
 public void Inherited()
 {
     var m = new AllPropertiesMappingManager();
     var fields = m.GetFields(typeof (InheritedEntity));
     Assert.AreEqual(3, fields.Count);
 }