public void OccupiedToStringInvalid() { // invalid string returnValue = OccupiedHelper.OccupiedToString((Occupied)42); Assert.AreSame(returnValue, "?"); }
public override string ToString() { return(this.location + " " + OccupiedHelper.OccupiedToString(this.IsOccupied)); }
public void OccupiedToStringPlayerY() { string returnValue = OccupiedHelper.OccupiedToString(Occupied.PlayerY); Assert.AreSame(returnValue, "Y"); }
public void OccupiedToStringEmpty() { string returnValue = OccupiedHelper.OccupiedToString(Occupied.Empty); Assert.AreSame(returnValue, "-"); }