public void navlidSpecifiedSentryObject_ReturnsErrorCode(string apiUnderTest, string invalidData, string expected) { sentryErrorService = new SentryErrorService(apiUnderTest, invalidData); Assert.That(sentryErrorService.dto.ErrorSentry.message, Is.EqualTo(expected)); Assert.That(sentryErrorService.dto.ErrorSentry.code, Is.EqualTo("400")); }
public void InavlidSentryRemoved_ReturnsErrorCode(string apiUnderTest, string removedDataInput) { sentryErrorService = new SentryErrorService(apiUnderTest, removedDataInput); Assert.That(sentryErrorService.dto.ErrorSentry.message, Is.EqualTo("boolean value must be 'true', 'false', 'Y', 'N', '1', or '0'")); Assert.That(sentryErrorService.dto.ErrorSentry.code, Is.EqualTo("400")); }
public void InavlidSentryIP_ReturnsErrorCode(string apiUnderTest, string invalidIP, string invalidExponent) { sentryErrorService = new SentryErrorService(apiUnderTest, invalidIP, invalidExponent); Assert.That(sentryErrorService.dto.ErrorSentry.message, Is.EqualTo("invalid value specified for query parameter 'ip-min': invalid ip-min value (expecting a positive number between 1e-10 and 1.0)")); Assert.That(sentryErrorService.dto.ErrorSentry.code, Is.EqualTo("400")); }