public void StringContentResultType_ShouldThrow() { TestStreamingMiddleware middleware = new TestStreamingMiddleware(); Assert.Throws <ContractViolationException>(() => middleware.Validate(BoltFramework.GetContract(typeof(IInvalid3)))); }
public void MethodWithCustomArgument_ShouldThrow() { TestStreamingMiddleware middleware = new TestStreamingMiddleware(); Assert.Throws <ContractViolationException>(() => middleware.Validate(BoltFramework.GetContract(typeof(IInvalid2)))); }