Example #1
0
        public void TestThatPlayerByPlayerNumberIsOfTypePlayer()
        {
            var sut    = new StatsCalculator(SampleData.Teams, new StatsWeightingStub());
            var result = sut.PlayerByPlayerNumber(5);

            Assert.IsInstanceOfType(result, typeof(Player));
        }
Example #2
0
        public void TestThatPlayerByPlayerNumberIsNull()
        {
            var sut    = new StatsCalculator(SampleData.Teams, new StatsWeightingStub());
            var result = sut.PlayerByPlayerNumber(100);

            Assert.IsNull(result);
        }
Example #3
0
        public void TestThatPlayerByPlayerNumberHasCorrectPlayerNumberValue()
        {
            var playerNumber = 5;
            var sut          = new StatsCalculator(SampleData.Teams, new StatsWeightingStub());
            var result       = sut.PlayerByPlayerNumber(playerNumber);

            Assert.AreEqual(result.PlayerNumber, playerNumber);
        }