Exemplo n.º 1
0
        public void Should_read_from_boolean_nodes()
        {
            var section = new CoreSection();

            section.Read(_file);
            section.DebuggingEnabled.ShouldExclude.ShouldBeTrue();
        }
Exemplo n.º 2
0
        public void Should_read_exclude_from_node()
        {
            var section = new CoreSection();

            section.Read(_file);
            section.BuildExecutables.ShouldExclude.ShouldBeTrue();
        }
Exemplo n.º 3
0
        public void Should_set_not_read_from_file_if_found()
        {
            var section = new CoreSection();

            section.Read(_file);
            section.NUnitTestRunner.WasReadFromConfig.ShouldBeTrue();
        }
Exemplo n.º 4
0
        public void Should_not_allow_merge_for_growl()
        {
            var section = new CoreSection();

            section.Read(_file);
            section.GrowlNotify.ShouldMerge.ShouldBeFalse();
        }
Exemplo n.º 5
0
        public void Should_read_from_first_node_only()
        {
            var section = new CoreSection();

            section.Read(_file);
            section.WatchDirectories.ShouldExclude.ShouldBeFalse();
        }
Exemplo n.º 6
0
        public void Should_not_be_able_to_merge_code_editor()
        {
            var section = new CoreSection();

            section.Read(_file);
            section.CodeEditor.ShouldMerge.ShouldBeFalse();
        }
Exemplo n.º 7
0
        public void Should_read_from_value_item_nodes()
        {
            var section = new CoreSection();

            section.Read(_file);
            section.WatchIgnoreFile.ShouldExclude.ShouldBeTrue();
        }
Exemplo n.º 8
0
        public void Should_read_merge_from_node()
        {
            var section = new CoreSection();

            section.Read(_file);
            section.WatchDirectories.ShouldMerge.ShouldBeTrue();
            section.WatchDirectories.ShouldExclude.ShouldBeFalse();
        }
Exemplo n.º 9
0
        public void Should_ignore_invalid_configurations()
        {
            if (File.Exists(_file))
            {
                File.Delete(_file);
            }
            File.WriteAllText(_file, "");
            var section = new CoreSection();

            section.Read(_file);
        }
Exemplo n.º 10
0
 /// <summary>
 /// Default constructor
 /// </summary>
 private CoreBuilder()
 {
     this.CoreSection = ConfigurationManager.GetSection(SECTION_NAME) as CoreSection;
 }