public void HandlesUnitTypeWithProtossUnit(ProtossUnitType unit) { var unitType = new UnitType(unit); var otherUnitType = new UnitType(unit); Assert.IsTrue(unitType == otherUnitType); }
public void HandlesBuildingOrUnitTypeWithProtossUnit(ProtossUnitType unit) { var buildingOrUnitType = new BuildingOrUnitType(unit); var otherBuildingOrUnitType = new BuildingOrUnitType(unit); Assert.IsTrue(buildingOrUnitType == otherBuildingOrUnitType); }
public BuildingOrUnitType(ProtossUnitType unit) { if (unit == ProtossUnitType.Unspecified) { throw new ArgumentException("Invalid ProtossUnitType - 'Unspecified'.", "building"); } this.ProtossUnit = unit; }
public BuildingOrUnitType(ProtossUnitType unit) { this.Value = unit; }
public void HandlesProtossUnitType(ProtossUnitType unit) { var unitType = new UnitType(unit); Assert.IsTrue(unitType == unit); }
public UnitType(ProtossUnitType unit) { this.Value = unit; }
public void HandlesProtossUnitType(ProtossUnitType unit) { var buildingOrUnitType = new BuildingOrUnitType(unit); Assert.IsTrue(buildingOrUnitType == unit); }