示例#1
0
 public void TestCTOR_NoCar()
 {
     var yardLine = new YardLine('X', "00ABCDAF", 0);
     Assert.AreEqual(0, yardLine.CarsCount());
     Assert.AreEqual(true, yardLine.IsTrash());
     Assert.AreEqual(0, yardLine.MovementNeeded());
     Assert.AreEqual(4, yardLine.SpaceAvailable());
     Assert.AreEqual(-1, yardLine.SpaceNeededForNext());
     Assert.AreEqual(4, yardLine.TrashCapacity());
 }
示例#2
0
 public void TestCTOR_Hard()
 {
     var yardLine = new YardLine('A', "00ABCDAF", 0);
     Assert.AreEqual(2, yardLine.CarsCount());
     Assert.AreEqual(false, yardLine.IsTrash());
     Assert.AreEqual(3, yardLine.MovementNeeded());
     Assert.AreEqual(4, yardLine.SpaceAvailable());
     Assert.AreEqual(0, yardLine.SpaceNeededForNext());
     Assert.AreEqual(9, yardLine.TrashCapacity());
 }