public void PassingTooLargeAValueThrowsExceptionWithProperMessage()
            {
                PlacedFormation          placedFormation = new PlacedFormation();
                PlacedFormationException ex = Assert.Throws <PlacedFormationException>(() => placedFormation.GetNumberedSkillWeak(FlowDirection.OutsideIn, 7));

                Assert.Equal("Can't get numbers skill player larger then 6. There are only 6 skill players.", ex.Message);
            }
            public void Passing0ThrowsExceptionWithProperMessage()
            {
                PlacedFormation          placedFormation = new PlacedFormation();
                PlacedFormationException ex = Assert.Throws <PlacedFormationException>(() => placedFormation.GetNumberedSkillWeak(FlowDirection.OutsideIn, 0));

                Assert.Equal("Can't get 0 numbered skill player.", ex.Message);
            }
            public void NotEnoughReceiversOutsideTackleThrowsExceptionWithProperMessage_02()
            {
                PlacedFormation          placedFormation = NumberedSkillPlayersPlacedFormationTestData.testPlacedFormations[3];
                PlacedFormationException ex = Assert.Throws <PlacedFormationException>(() => placedFormation.GetNumberedSkillLeft(FlowDirection.InsideOut, 5));

                Assert.Equal("Not enough skill players outside tackle.", ex.Message);
            }
            public void PassingNegativeValueThrowsExceptionWithProperMessage()
            {
                PlacedFormation          placedFormation = new PlacedFormation();
                PlacedFormationException ex = Assert.Throws <PlacedFormationException>(() => placedFormation.GetNumberedSkillStrong(FlowDirection.OutsideIn, -3));

                Assert.Equal("Can't get negative numbered skill player.", ex.Message);
            }
            public void GettingPlayerWithNonexistantTagThrowsException()
            {
                PlacedFormation placedFormation = new PlacedFormation();

                placedFormation.leftTackle.tag      = "LT";
                placedFormation.skillPlayers[2].tag = "X";

                PlacedFormationException ex = Assert.Throws <PlacedFormationException>(() => placedFormation.GetPlayerByTag("Nonexistent"));

                Assert.Equal("No player in formation has tag Nonexistent", ex.Message);
            }