public void TestMethodTravelSolarToPlanetTestMap() { var map = new GalaxyMap(); map.ReadDbData(Path.Combine(Directory.GetCurrentDirectory(), @"..\..\global.db")); Assert.AreEqual("Beta [5 LY] -> Omicron [0 LY]", map.Navigate("Alpha", "omicron", 50 * Const.SectorsPerLY).Aggregate((string)null, (s, n) => s == null ? n.ToString() : $"{s} -> {n}")); Assert.AreEqual("Beta [5 LY] -> Omicron [0 LY]", map.Navigate("A lpha", "Omicron", 50 * Const.SectorsPerLY).Aggregate((string)null, (s, n) => s == null ? n.ToString() : $"{s} -> {n}")); }
public void TestMethodTravelTestMap() { var map = new GalaxyMap(); map.ReadDbData(Path.Combine(Directory.GetCurrentDirectory(), @"..\..\global.db")); Assert.AreEqual("Beta [5 LY]", map.Navigate("Alpha", "Beta", 50 * Const.SectorsPerLY).Aggregate((string)null, (s, n) => s == null ? n.ToString() : $"{s} -> {n}")); Assert.AreEqual("Naphona [43 LY] -> Cyrimudai [17 LY] -> Malphukaltho [49 LY] -> Rangudra [39 LY] -> Naamadhaka [45 LY] -> Mastiless [49 LY] -> Farr [49 LY]", map.Navigate("Alpha", "Farr", 50 * Const.SectorsPerLY).Aggregate((string)null, (s, n) => s == null ? n.ToString() : $"{s} -> {n}")); }