public void ShouldReturnTheModuleConfiguration()
 {
     var moduleConfiguration = new ModuleConfiguration(false, "script1.csx", false, LogLevel.Debug, false, new Dictionary<Type, object>());
     var config = moduleConfiguration.LineProcessor<UsingLineProcessor>();
     config.ShouldImplement<IModuleConfiguration>();
     config.ShouldEqual(moduleConfiguration);
 }
            public void ShouldReturnTheModuleConfiguration()
            {
                var moduleConfiguration = new ModuleConfiguration(false, "script1.csx", false, LogLevel.Debug, false, new Dictionary <Type, object>());
                var config = moduleConfiguration.LineProcessor <UsingLineProcessor>();

                config.ShouldImplement <IModuleConfiguration>();
                config.ShouldEqual(moduleConfiguration);
            }
            public void ShouldAddTheLineProcessorTypeToTheOverridesDictionary()
            {
                var overrides = new Dictionary<Type, object>();

                var moduleConfiguration = new ModuleConfiguration(false, "script1.csx", false, LogLevel.Debug, false, overrides);
                moduleConfiguration.LineProcessor<UsingLineProcessor>();

                var processors = overrides[typeof(ILineProcessor)] as List<Type>;
                processors.ShouldContain(typeof(UsingLineProcessor));
            }
            public void ShouldAddTheLineProcessorTypeToTheOverridesDictionary()
            {
                var overrides = new Dictionary <Type, object>();

                var moduleConfiguration = new ModuleConfiguration(false, "script1.csx", false, LogLevel.Debug, false, overrides);

                moduleConfiguration.LineProcessor <UsingLineProcessor>();

                var processors = overrides[typeof(ILineProcessor)] as List <Type>;

                processors.ShouldContain(typeof(UsingLineProcessor));
            }