public void TestItFailsOnInvalidColours()
        {
            sectorElements.Add(RegionFactory.Make("colour2"));
            sectorElements.Add(RegionFactory.Make("-123"));

            AssertValidationErrors(4);
        }
        public void TestItReturnsElementsInOrder()
        {
            OutputGroup group1 = new("1");
            OutputGroup group2 = new("2");

            outputGroups.AddGroupWithFiles(group1, new List <string> {
                "foo.txt"
            });
            outputGroups.AddGroupWithFiles(group2, new List <string> {
                "goo.txt"
            });

            Region first  = RegionFactory.Make(definition: DefinitionFactory.Make("foo.txt"));
            Region second = RegionFactory.Make(definition: DefinitionFactory.Make("goo.txt"));
            Region third  = RegionFactory.Make(definition: DefinitionFactory.Make("foo.txt"));

            sectorElements.Add(first);
            sectorElements.Add(second);
            sectorElements.Add(third);

            IEnumerable <ICompilableElementProvider> expected = new List <ICompilableElementProvider>()
            {
                first,
                third,
                second
            };

            AssertCollectedItems(expected);
        }
        public void TestItPassesOnValidColours()
        {
            sectorElements.Add(RegionFactory.Make("colour1"));
            sectorElements.Add(RegionFactory.Make("123"));

            AssertNoValidationErrors();
        }
        public void TestItAddsRegions()
        {
            Region region = RegionFactory.Make();

            collection.Add(region);

            Assert.Equal(region, collection.Regions[0]);
        }