public void ThisAndBaseTypes_ReturnsAllTheBaseTypes() { ODataModelBuilder builder = GetMockVehicleModel(); EntityTypeConfiguration vehicle = builder.StructuralTypes.OfType <EntityTypeConfiguration>().Where(e => e.Name == "vehicle").Single(); EntityTypeConfiguration motorcycle = builder.StructuralTypes.OfType <EntityTypeConfiguration>().Where(e => e.Name == "motorcycle").Single(); EntityTypeConfiguration sportbike = builder.StructuralTypes.OfType <EntityTypeConfiguration>().Where(e => e.Name == "sportbike").Single(); Assert.Contains(vehicle, sportbike.ThisAndBaseTypes()); Assert.Contains(motorcycle, sportbike.ThisAndBaseTypes()); Assert.Contains(sportbike, sportbike.ThisAndBaseTypes()); }