Пример #1
0
 public void Solve()
 {
     List<int> people = new List<int>() { 10, 5, 2, 1 };
     ICrossTheBridge crossing = new CrossTheBridge(people);
     crossing.Solve();
     Assert.AreEqual(crossing.GetResult(), "17");
 }
Пример #2
0
        public void Parameters_Wrong()
        {
            List<int> people = new List<int>() { 0, 2, 5, 10 };
            ICrossTheBridge crossing = new CrossTheBridge(people);

            Assert.AreEqual(crossing.GetResult(), "Nem megfelelő paraméter! Egy személynek legalább 1 percbe telik átkelni a hídon!");
        }