Example #1
0
        public void configure_not_implemented()
        {
            IConfigurationAction configActionVisitor = new RouteVisitor();

            typeof(NotImplementedException).ShouldBeThrownBy(
                () => configActionVisitor.Configure(new FubuRegistry().BuildGraph()));
        }
Example #2
0
        public void configure_not_implemented()
        {
            IConfigurationAction configActionVisitor = new RouteVisitor();

            typeof(NotImplementedException).ShouldBeThrownBy(
                () => configActionVisitor.Configure(BehaviorGraph.BuildEmptyGraph()));
        }
Example #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);
        }