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"]); }
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"]); }
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"]); }
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"]); }
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"]); }
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"]); }
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(); }
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); }
public Room_Factory(Vessel_Factory vFactory) { }