public void HandlesUnitTypeWithZergUnit(ZergUnitType unit) { var unitType = new UnitType(unit); var otherUnitType = new UnitType(unit); Assert.IsTrue(unitType == otherUnitType); }
public void HandlesBuildingOrUnitTypeWithZergUnit(ZergUnitType unit) { var buildingOrUnitType = new BuildingOrUnitType(unit); var otherBuildingOrUnitType = new BuildingOrUnitType(unit); Assert.IsTrue(buildingOrUnitType == otherBuildingOrUnitType); }
public BuildingOrUnitType(ZergUnitType unit) { if (unit == ZergUnitType.Unspecified) { throw new ArgumentException("Invalid ZergUnitType - 'Unspecified'.", "building"); } this.ZergUnit = unit; }
public BuildingOrUnitType(ZergUnitType unit) { this.Value = unit; }
public void HandlesZergUnitType(ZergUnitType unit) { var unitType = new UnitType(unit); Assert.IsTrue(unitType == unit); }
public UnitType(ZergUnitType unit) { this.Value = unit; }
public void HandlesZergUnitType(ZergUnitType unit) { var buildingOrUnitType = new BuildingOrUnitType(unit); Assert.IsTrue(buildingOrUnitType == unit); }