Exemplo n.º 1
0
        public void HandlesUnitTypeWithTerranUnit(TerranUnitType unit)
        {
            var unitType      = new UnitType(unit);
            var otherUnitType = new UnitType(unit);

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

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

            Assert.IsTrue(buildingOrUnitType == unit);
        }