static void Main()
 {
     Testing.ReportTestResults();
     Testing.CheckExpect("Passing Test", Foo, "Foo");
     // Testing.CheckExpect("Error Test", Error, "true");
     // Testing.CheckExpect("Empty Test", Empty, "true");
     Testing.CheckExpectTimed("Timed Test", Foo, "Foo");
     Testing.ReportTestResults();
 }
Beispiel #2
0
 static void Main()
 {
     Testing.CheckExpect("Construct Database", ConstructDatabase, "success");
     Testing.CheckExpect("Load Campaigns", LoadCampaign,
                         "Post Endor (5 ABY)Second Galactic Civil War (44 ABY)Test (0 ABY)3");
     #region Database.cs
     Testing.CheckExpect("Database.FreshID",
                         FreshIDs,
                         "planet1planet2");
     Testing.CheckExpect("Class Specific Database.FreshID",
                         ClassFreshIDs,
                         "planet1character1fleet1testplanetfleet1government1");
     // Testing.CheckExpect("Database.FreshName",
     //                     FreshNames,
     //                     "");
     // Testing.CheckExpect("Class Specific Database.FreshName",
     //                     ClassFreshnames,
     //                     "");
     // Testing.CheckExpect("Database.AddPlanet",
     //                     AddPlanet,
     //                     "");
     // Testing.CheckExpect("Database.AddCharacter",
     //                     AddCharacter,
     //                     "");
     // Testing.CheckExpect("Database.AddFleet",
     //                     AddFleet,
     //                     "");
     // Testing.CheckExpect("Database.AddGovernment",
     //                     AddGovernment,
     //                     "");
     // Testing.CheckExpect("Nameless Database.NewFleet",
     //                     NamelessNewFleet,
     //                     "");
     // Testing.CheckExpect("Database.NewFleet",
     //                     NewFleet,
     //                     "");
     #endregion
     #region Save.cs
     Testing.CheckExpectTimed("Load Database from Campaign",
                              LoadCampaignDatabase, LoadedDatabaseString);
     Testing.CheckExpect("Save Test", SaveTest, "saved");
     Testing.CheckExpect("Save Does Not Exist", FailSaveExist, "False");
     Testing.CheckExpect("Save Does Exist", SuccessSaveExist, "True");
     Testing.CheckExpect("List Save Files", SaveFiles, "Test");
     #endregion
     Testing.CheckExpect("Get Planet's Fleets", TestPlanetFleets, "coruscant");
     Testing.CheckExpect("Date Test", DateTest, "00:00 1:0 ABY");
     Testing.CheckExpect("Date Test 2", DateTest2, "00:00 217:13 ABY");
     #region Fleet.cs
     Testing.CheckExpect("Construct Fleet", ConstructFleet, "Fleet #10");
     Testing.CheckExpect("Add Fleet", AddFleet, "Test Fleet");
     Testing.CheckExpect("Add Many Fleets", AddMultipleFleets, "Coruscant Defense FleetImperial Corellia FleetNew Republic First FleetTest FleetFleet #1Fleet #2Fleet #3Fleet #4Fleet #5");
     Testing.CheckExpect("Get Fleet's Planet", TestFleetPlanet, "coruscant");
     Testing.CheckExpect("Simple Fleet Move", FleetMoveSimple, "8");
     Testing.CheckExpect("Complex Fleet Move", FleetMoveComplex, "17");
     Testing.CheckExpect("Fleet Destinations", FleetDestinations, "1");
     Testing.CheckExpect("Fleet Hostile Destinations", FleetHostileDestinations, "commenor");
     #endregion
     Testing.CheckExpect("Test Character", TestCharacter, "character1");
     Testing.CheckExpect("Search Test 1", SearchTest, "empirecorelliacoruscantimparmyimpnavyempirecorelliacoruscant");
     Testing.CheckExpect("Coordinate Move", CoordinateMove, "244.9204");
     Testing.ReportTestResults();
 }