Esempio n. 1
0
        public void GetWinnerTest()
        {
            //Arrange
            List <Unit> units = new List <Unit>
            {
                new Unit(1, "RCB", 50, 5),
                new Unit(4, "CSK", 40, 4)
            };

            //Act
            var result = _battleService.GetWinner(units);

            //Assert
            Assert.AreEqual(1, result.Id);
        }