static void Main(string[] args) { //not enogh time to complete XML import, JSON export and refactoring ImportFromJson.ImportSolarSystems(); ImportFromJson.ImportStars(); ImportFromJson.ImportPlanets(); ImportFromJson.ImportPeople(); ImportFromJson.ImportAnomalities(); ImportFromJson.ImportAnomalityVictims(); ExportToXml.ExportAnomlaies(); }
public void Read() { // arrange string path = @"data\cross\decision-tree-001.json"; // act Tree tree = ImportFromJson.Read(path); // assert Assert.IsNotNull(tree); Assert.IsNotNull(tree.Root); }
public void Resolve() { // arrange string name = "test-2x90-sin"; ItemNumerical item = ItemNumerical.Create(); item.AddValue("X", 1.45); item.AddValue("Y", 0); Tree tree = ImportFromJson.Read(string.Format(@"data\{0}.json", name)); // act var val = tree.Resolve(item); // assert }