public void TestUpdateMap_PlanetHasNoMap_ReturnsPathToEmpty() { MapCoordinateView view = new MapCoordinateView(); view.Planet = "thisisnomoon"; string path = view.MapImagePath; Assert.AreEqual("/Maps/Empty.jpg", path); }
public void TestUpdateMap_PlanetHasMap_ReturnsPath() { MapCoordinateView view = new MapCoordinateView(); view.Planet = "kerbin"; string path = view.MapImagePath; Assert.AreEqual("/Maps/kerbin.jpg", path); }
public FlightDisplayModel(NotificationView notifications) { Notifications = notifications; Vessel = new VesselViewModel(); MapCoordinates = new MapCoordinateView() { DisplayWidth = 640 * 2, DisplayHeight = 320 * 2, ShapeSize = 24, ShapeAscendingNodeSize = 12 }; Sensors = new SensorsViewModel(); Resources = new ResourceView(); Flight = new FlightViewModel(); Orbit = new OrbitViewModel(); }