public void Scanner_should_return_reference_to_same_configurator()
        {
            var configurator =
                new TypeScannerConfigurator();

            var reference =
                configurator.Scanner(new TypeScanner());

            reference.ShouldBeSameAs(configurator);
        }
        public void Scanner_should_throw_argumentnullexception_when_called_with_null()
        {
            var configurator =
                new TypeScannerConfigurator();

            var exception =
                Catch.Exception(() => configurator.Scanner(null));

            exception.ShouldBeOfType<ArgumentNullException>();
        }
        public void Scanner_should_add_scanner_to_configurator()
        {
            var configurator =
                new TypeScannerConfigurator();

            configurator.Scanner(new TypeScanner(new[] { typeof(object) }));

            var scanner =
                configurator.GetTypeScanner();

            var results =
                scanner.GetTypes(x => true);

            results.Count().ShouldEqual(1);
        }