public void HandlesUnitTypeWithZergUnit(ZergUnitType unit)
        {
            var unitType      = new UnitType(unit);
            var otherUnitType = new UnitType(unit);

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

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

            Assert.IsTrue(buildingOrUnitType == unit);
        }