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

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

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