Example #1
0
        public void HandlesUnitTypeWithTerranUnit(TerranUnitType unit)
        {
            var unitType      = new UnitType(unit);
            var otherUnitType = new UnitType(unit);

            Assert.IsTrue(unitType == otherUnitType);
        }
Example #2
0
        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;
        }
Example #4
0
 public BuildingOrUnitType(TerranUnitType unit)
 {
     this.Value = unit;
 }
Example #5
0
        public void HandlesTerranUnitType(TerranUnitType unit)
        {
            var unitType = new UnitType(unit);

            Assert.IsTrue(unitType == unit);
        }
Example #6
0
 public UnitType(TerranUnitType unit)
 {
     this.Value = unit;
 }
Example #7
0
        public void HandlesTerranUnitType(TerranUnitType unit)
        {
            var buildingOrUnitType = new BuildingOrUnitType(unit);

            Assert.IsTrue(buildingOrUnitType == unit);
        }