diff --git a/DashServer.Tests/ManagementApiRunner.cs b/DashServer.Tests/ManagementApiRunner.cs index bfc71ad..2d33c13 100644 --- a/DashServer.Tests/ManagementApiRunner.cs +++ b/DashServer.Tests/ManagementApiRunner.cs @@ -88,7 +88,14 @@ void ExecuteUpdateConfigCore(Func updateResponse = null; try { - updateResponse = this.ConfigController.UpdateConfiguration(updatedConfig).Result as NegotiatedContentResult; + var response = this.ConfigController.UpdateConfiguration(updatedConfig).Result; + updateResponse = response as NegotiatedContentResult; + if (updateResponse == null && !this.ExpectedException && !this.ExpectedAbnormalResponse) + { + Assert.Fail("Unexpected response from ConfigurationController.UpdateConfiguration. Response type: {0}. Details: {1}", + response.GetType().FullName, + response); + } } catch (Exception ex) {