Exemple #1
0
        public void StringContentResultType_ShouldThrow()
        {
            TestStreamingMiddleware middleware = new TestStreamingMiddleware();

            Assert.Throws <ContractViolationException>(() => middleware.Validate(BoltFramework.GetContract(typeof(IInvalid3))));
        }
Exemple #2
0
        public void MethodWithCustomArgument_ShouldThrow()
        {
            TestStreamingMiddleware middleware = new TestStreamingMiddleware();

            Assert.Throws <ContractViolationException>(() => middleware.Validate(BoltFramework.GetContract(typeof(IInvalid2))));
        }