Пример #1
0
        public void Setup()
        {
            _defaultMarsArea = new MarsArea()
            {
                MinimumXaxis = 0,
                MinimumYaxis = 0,
                MaximumXaxis = 5,
                MaximumYaxis = 5
            };

            _defaultRoverLocation = new RoverLocation()
            {
                CurrentXaxis = 2,
                CurrentYaxis = 2
            };
        }
Пример #2
0
        public void MarsDiscover_WhenSetMarsArea_ThenGetExpectedMarsArea()
        {
            //Given
            IMarsDiscover marsDiscover = new MarsDiscover(_marsDiscoveryInformation);

            //When
            MarsArea marsArea = marsDiscover.GetMarsArea();

            //Then
            MarsArea expectedMarsArea = new MarsArea()
            {
                MinimumXaxis = 0,
                MinimumYaxis = 0,
                MaximumXaxis = 5,
                MaximumYaxis = 5
            };

            marsArea.Should().BeEquivalentTo(expectedMarsArea);
        }