public void HandlesUnitTypeWithTerranUnit(TerranUnitType unit) { var unitType = new UnitType(unit); var otherUnitType = new UnitType(unit); Assert.IsTrue(unitType == otherUnitType); }
public void HandlesBuildingOrUnitTypeWithTerranUnit(TerranUnitType unit) { var buildingOrUnitType = new BuildingOrUnitType(unit); var otherBuildingOrUnitType = new BuildingOrUnitType(unit); Assert.IsTrue(buildingOrUnitType == otherBuildingOrUnitType); }
public BuildingOrUnitType(TerranUnitType unit) { if (unit == TerranUnitType.Unspecified) { throw new ArgumentException("Invalid TerranUnitType - 'Unspecified'.", "building"); } this.TerranUnit = unit; }
public BuildingOrUnitType(TerranUnitType unit) { this.Value = unit; }
public void HandlesTerranUnitType(TerranUnitType unit) { var unitType = new UnitType(unit); Assert.IsTrue(unitType == unit); }
public UnitType(TerranUnitType unit) { this.Value = unit; }
public void HandlesTerranUnitType(TerranUnitType unit) { var buildingOrUnitType = new BuildingOrUnitType(unit); Assert.IsTrue(buildingOrUnitType == unit); }