public void Should_throw_if_property_is_unmapped() { // given var mapping = new EntityMapping(typeof(IPerson)); // then Assert.Throws <MappingException>(() => mapping.PropertyFor("SomeProperty")); }