public void GetStation_Hit() { GalaxyState galaxyState = new GalaxyState(); Station station1 = new Station("A", 1, "F1"); Station station2 = new Station("B", 2, "F2"); galaxyState.AddOrUpdateStation(station1); galaxyState.AddOrUpdateStation(station2); Assert.That(galaxyState.GetStation(station1.Name, station1.SystemAddress), Is.EqualTo(station1)); Assert.That(galaxyState.GetStation(station2.Name, station2.SystemAddress), Is.EqualTo(station2)); }
public void GetStation_MissSystemAddress() { GalaxyState galaxyState = new GalaxyState(); Station station = new Station("A", 1, "F1"); galaxyState.AddOrUpdateStation(station); Assert.That(galaxyState.GetStation(station.Name, station.SystemAddress + 1), Is.Null); }
public void GetStation_Empty() { GalaxyState galaxyState = new GalaxyState(); Assert.That(galaxyState.GetStation("a", 1), Is.Null); }