Beispiel #1
0
        public void Should_set_not_read_from_file_if_found()
        {
            var section = new CoreSection();

            section.Read(_file);
            section.NUnitTestRunner.WasReadFromConfig.ShouldBeTrue();
        }
Beispiel #2
0
        public void Should_read_from_boolean_nodes()
        {
            var section = new CoreSection();

            section.Read(_file);
            section.DebuggingEnabled.ShouldExclude.ShouldBeTrue();
        }
Beispiel #3
0
        public void Should_read_from_first_node_only()
        {
            var section = new CoreSection();

            section.Read(_file);
            section.WatchDirectories.ShouldExclude.ShouldBeFalse();
        }
Beispiel #4
0
        public void Should_read_exclude_from_node()
        {
            var section = new CoreSection();

            section.Read(_file);
            section.BuildExecutables.ShouldExclude.ShouldBeTrue();
        }
Beispiel #5
0
        public void Should_not_allow_merge_for_growl()
        {
            var section = new CoreSection();

            section.Read(_file);
            section.GrowlNotify.ShouldMerge.ShouldBeFalse();
        }
Beispiel #6
0
        public void Should_not_be_able_to_merge_code_editor()
        {
            var section = new CoreSection();

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

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

            section.Read(_file);
            section.WatchDirectories.ShouldMerge.ShouldBeTrue();
            section.WatchDirectories.ShouldExclude.ShouldBeFalse();
        }
Beispiel #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);
        }