public void Scalar_produces_no_regions()
        {
            var sut = new RegionExtractor();

            var regions = sut.GetRegions(Yaml.ScannerForText(@"
				scalar
			"            ).AsEnumerable()).ToList();

            ValidateRegions(regions);
        }
        public void Mapping_of_scalars_produces_no_regions()
        {
            var sut = new RegionExtractor();

            var regions = sut.GetRegions(Yaml.ScannerForText(@"
				x: a
				y: b
				z: c
			"            ).AsEnumerable()).ToList();

            ValidateRegions(regions);
        }
        public void Block_of_text_produces_region()
        {
            var sut = new RegionExtractor();

            var regions = sut.GetRegions(Yaml.ScannerForText(@"
				- |
				  hello
				  world
				- b
				- c
			"            ).AsEnumerable()).ToList();

            ValidateRegions(regions
                            , Region(1, 2, 4)
                            );
        }
        public void Sequence_of_sequences_produces_a_region_for_each_inner_sequence()
        {
            var sut = new RegionExtractor();

            var regions = sut.GetRegions(Yaml.ScannerForText(@"
				-
				  - a
				  - b
				-
				  - c
				  - d
			"            ).AsEnumerable()).ToList();

            ValidateRegions(regions
                            , Region(1, 2, 4)
                            , Region(4, 2, 7)
                            );
        }
        public void Sequence_of_mappings_produces_a_region_for_each_mapping()
        {
            var sut = new RegionExtractor();

            var regions = sut.GetRegions(Yaml.ScannerForText(@"
				-
				  x: a
				  y: b
				-
				  z: c
				  w: d
			"            ).AsEnumerable()).ToList();

            ValidateRegions(regions
                            , Region(1, 2, 4)
                            , Region(4, 2, 7)
                            );
        }
        public void Mapping_of_mappings_produces_a_region_for_each_inner_mapping()
        {
            var sut = new RegionExtractor();

            var regions = sut.GetRegions(Yaml.ScannerForText(@"
				x:
				  f: a
				  g: b
				y:
				  h: c
				  i: d
			"            ).AsEnumerable()).ToList();

            ValidateRegions(regions
                            , Region(1, 3, 4)
                            , Region(4, 3, 7)
                            );
        }
        public void Mapping_of_sequences_produces_a_region_for_each_sequence()
        {
            var sut = new RegionExtractor();

            var regions = sut.GetRegions(Yaml.ScannerForText(@"
				x:
				  - a
				  - b
				y:
				  - c
				  - d
			"            ).AsEnumerable()).ToList();

            ValidateRegions(regions
                            , Region(1, 3, 4)
                            , Region(4, 3, 7)
                            );
        }