public void EntitySetForPath_Throws_ODataException_IfEntitySetNotRegistered() { ODataException odataException = Assert.Throws <ODataException>(() => EntityDataModel.Current.EntitySetForPath("/OData/Colour")); Assert.Equal(ExceptionMessage.EntityDataModelDoesNotContainEntitySet("Colour"), odataException.Message); Assert.Equal(HttpStatusCode.BadRequest, odataException.StatusCode); Assert.Equal("Colour", odataException.Target); }