示例#1
0
        public void OccupiedToStringInvalid()
        {
            // invalid
            string returnValue = OccupiedHelper.OccupiedToString((Occupied)42);

            Assert.AreSame(returnValue, "?");
        }
示例#2
0
 public override string ToString()
 {
     return(this.location + " " + OccupiedHelper.OccupiedToString(this.IsOccupied));
 }
示例#3
0
        public void OccupiedToStringPlayerY()
        {
            string returnValue = OccupiedHelper.OccupiedToString(Occupied.PlayerY);

            Assert.AreSame(returnValue, "Y");
        }
示例#4
0
        public void OccupiedToStringEmpty()
        {
            string returnValue = OccupiedHelper.OccupiedToString(Occupied.Empty);

            Assert.AreSame(returnValue, "-");
        }