예제 #1
0
        public void DeffensiveLineup()
        {
            var            snapshots = LineupTests.GetSnapshots();
            IList <LineUp> lineups   = LineUp.GetDeffensiveLineup(snapshots, playerCount: 5, minTime: TimeSpan.FromMinutes(1));
            var            lineup    = lineups.FirstOrDefault();


            var expected = new int[] { 1, 2, 3, 4, 5 };

            CollectionAssert.AreEquivalent(expected, lineup);
        }
예제 #2
0
        public void OffensiveLineup()
        {
            var            snapshots = LineupTests.GetSnapshots();
            IList <LineUp> lineups   = LineUp.GetOffensiveLineup(snapshots, playerCount: 5);
            var            lineup    = lineups.FirstOrDefault();


            var expected = new int[] { 1, 2, 3, 4, 7 };

            CollectionAssert.AreEquivalent(expected, lineup);
        }