Example #1
0
        public void ForToSmallestDifference()
        {
            List <string> data = new List <string>();

            data.AddRange(new string[] {
                "1. Arsenal,38,26,9,3,79,-,36,87", "2. Liverpool,38,24,8,6,67,-,30,80", "3. Manchester_U,38,24,5,9,87,-,45,77"
            });
            ScoreSheet testobj = new ScoreSheet();
            var        result  = testobj.SmallestForAgainstGoal(data);

            Assert.AreEqual("2. Liverpool", result.Name, "Name is correct");
            Assert.AreEqual(37, result.ForAgainstDifference, "Difference is correct");
        }