예제 #1
0
 protected bool IsSeatValid(int seat, out string msg)
 {
     msg = "";
     if (seat >= 0 && seat <= DriverAddr.GetSeatCount())
     {
         return(true);
     }
     msg = $"Select seat: seat is invalid [seat = {seat}]";
     return(false);
 }
예제 #2
0
 public void TestGetSeatCount()
 {
     Assert.AreEqual(_vbmsDriverAddr.GetSeatCount(), 25);
 }