コード例 #1
0
        public void configure_not_implemented()
        {
            IConfigurationAction configActionVisitor = new RouteVisitor();

            typeof(NotImplementedException).ShouldBeThrownBy(
                () => configActionVisitor.Configure(new FubuRegistry().BuildGraph()));
        }
コード例 #2
0
ファイル: RouteVisitorTester.cs プロジェクト: moacap/fubumvc
        public void configure_not_implemented()
        {
            IConfigurationAction configActionVisitor = new RouteVisitor();

            typeof(NotImplementedException).ShouldBeThrownBy(
                () => configActionVisitor.Configure(BehaviorGraph.BuildEmptyGraph()));
        }
コード例 #3
0
        public void SetUp()
        {
            visitor = new RouteVisitor();
            route   = MockRepository.GenerateMock <IRouteDefinition>();
            chain   = new BehaviorChain();

            processor = MockRepository.GenerateMock <RouteProcessor>();

            visitor.Actions += (x, y) => processor.Got(x, y);
        }