Ejemplo n.º 1
0
        public void AddFormationByRegionName_Nonmatching_Region_Name_Does_Not_Add()
        {
            Region           region = new Region(NAME_REGION, StarRegion);
            FormationMatcher nonMatchingFormationMatcher = new FormationMatcher(NAME_REGION + "NonMatching", NAME_FORMATION, NAME_SUBFORMATION);

            region.AddFormationByRegionName(nonMatchingFormationMatcher);

            Assert.That(region.Formations, Is.Empty);
        }
Ejemplo n.º 2
0
        public void AddFormationByRegionName_Matching_Region_Name_Adds()
        {
            Region           region = new Region(NAME_REGION, StarRegion);
            FormationMatcher matchingFormationMatcher = new FormationMatcher(NAME_REGION, NAME_FORMATION);

            region.AddFormationByRegionName(matchingFormationMatcher);

            Assert.That(region.Formations.Count, Is.EqualTo(1));
            Assert.That(region.Formations[0].FormationName, Is.EqualTo(NAME_FORMATION));
        }