Ejemplo n.º 1
0
        public void vessel_should_have_an_infrastructure()
        {
            Vessel_Factory testVesselFactory = new Vessel_Factory("Test Vessel");
            Vessel         testVessel        = testVesselFactory.createNewVessel("Test Type");

            Assert.IsInstanceOf <Infrastructure>((Infrastructure)testVessel.vesselProperties["Infrastructure"]);
        }
Ejemplo n.º 2
0
        public void vessel_should_have_a_shield()
        {
            Vessel_Factory testVesselFactory = new Vessel_Factory("Test Vessel");
            Vessel         testVessel        = testVesselFactory.createNewVessel("Test Type");

            Assert.IsInstanceOf <Shield>((Shield)testVessel.vesselProperties["Shield"]);
        }
Ejemplo n.º 3
0
        public void vessel_should_have_a_hull()
        {
            Vessel_Factory testVesselFactory = new Vessel_Factory("Test Vessel");
            Vessel         testVessel        = testVesselFactory.createNewVessel("Test Type");

            Assert.IsInstanceOf <Hull>((Hull)testVessel.vesselProperties["Hull"]);
        }
Ejemplo n.º 4
0
        public void vessel_should_have_rooms()
        {
            Vessel_Factory testVesselFactory = new Vessel_Factory("Test Vessel");
            Vessel         testVessel        = testVesselFactory.createNewVessel("Test Type");

            Assert.IsInstanceOf <Hashtable>((Hashtable)testVessel.vesselProperties["Rooms"]);
        }
Ejemplo n.º 5
0
        public void vessel_should_have_a_type()
        {
            Vessel_Factory testVesselFactory = new Vessel_Factory("Test Vessel");
            Vessel         testVessel        = testVesselFactory.createNewVessel("Test Type");

            Assert.IsInstanceOf <Type_ID_Property>((Type_ID_Property)testVessel.vesselProperties["Type"]);
        }
Ejemplo n.º 6
0
        public void vessel_should_have_a_name()
        {
            Vessel_Factory testVesselFactory = new Vessel_Factory("Test Vessel");
            Vessel         testVessel        = testVesselFactory.createNewVessel("Test Type");

            Assert.AreEqual("Test Vessel", (string)testVessel.vesselProperties["Name"]);
        }
Ejemplo n.º 7
0
        public void rooms_should_have_a_unique_ID_as_their_key_in_the_Rooms_hashtable_in_a_vessel()
        {
            Vessel_Factory testVesselFactory = new Vessel_Factory("Test Vessel");
            Vessel         testVessel        = testVesselFactory.createNewVessel("Test Type");

            //Assert.AreEqual();
        }
Ejemplo n.º 8
0
        public void createRoom(Vessel playerVessel, Vessel_Factory vFactory, Bounding_Dimensions_Property boundsIncoming, Ship_Local_Co_Ordinates_Property shipLocationIn, string typeIn)
        {
            Room_Type_Setter rTypeSetter = new Room_Type_Setter(typeIn);

            output = new Room();

            //output.room.Add();
            output.roomProperties.Add("Bounds", boundsIncoming);
            output.roomProperties.Add("Ship Local CoOrdinates", shipLocationIn);
            output.roomProperties.Add("Type", new Type_ID_Property("Room", typeIn));
            output.roomProperties.Add("Unique ID", new Unique_ID(vFactory));
            output.roomProperties.Add("Bulkheads", new List <Bulkhead>());
            output.roomProperties.Add("Systems", new List <Vessel_System>());
            output.roomProperties.Add("Interfaces", new List <InfrastructureInterface>());
            output.roomProperties.Add("Atmosphere", new Atmosphere());

            vFactory.addRoom(output, playerVessel);
        }
Ejemplo n.º 9
0
 public Room_Factory(Vessel_Factory vFactory)
 {
 }