public async Task GetSystemEmptyInput() { var response = await EdsmAPI.GetSystemData(String.Empty); response.Dump(); Assert.IsNull(response.Data); }
public async Task GetSystemNonExistent() { var response = await EdsmAPI.GetSystemData("jhasdsadhjkdsajhk"); response.Dump(); Assert.IsNull(response.Data); }
public async Task GetSystemExistent() { var response = await EdsmAPI.GetSystemData("Colonia"); response.Dump(); Assert.IsNotNull(response.Data); Assert.IsNotNull(response.Data.Name); Assert.IsNotNull(response.Data.Coordinate); Assert.AreEqual(-9530.5f, response.Data.Coordinate.X); Assert.AreEqual(-910.28125f, response.Data.Coordinate.Y); Assert.AreEqual(19808.125f, response.Data.Coordinate.Z); Assert.IsTrue(response.Data.IsScoopable); }