public void MarsDiscover_WhenCommandExecute_ThenExpectedLocation(MarsDiscoveryInformation marsDiscoveryInformation, List <string> expectedLocationList) { //Given IMarsDiscover marsDiscover = new MarsDiscover(marsDiscoveryInformation); //When marsDiscover.ExecuteCommand(); //Then List <string> locationList = marsDiscover.GetLocationList(); locationList.Should().BeEquivalentTo(expectedLocationList); }
public void Setup() { _marsDiscoveryInformation = new MarsDiscoveryInformation() { Area = "5 5", RoverInformationList = new List <RoverDiscoveryInformation>() { new RoverDiscoveryInformation() { Location = "1 2 N", Command = "LMLMLMLMM" }, new RoverDiscoveryInformation() { Location = "3 3 E", Command = "MMRMMRMRRM" } } }; }