예제 #1
0
        public void HandlesUnitTypeWithZergUnit(ZergUnitType unit)
        {
            var unitType      = new UnitType(unit);
            var otherUnitType = new UnitType(unit);

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

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

            Assert.IsTrue(buildingOrUnitType == unit);
        }