Exemple #1
0
        public void SetGetRoverPosition()
        {
            // Arrange
            var expected = new Position {
                X = 0, Y = 0
            };

            _service.SetRoverPosition(_rover, expected);

            // Act
            var actual = _service.GetRoverPosition(_rover);

            // Assert
            Assert.IsTrue(expected.X == actual.X &&
                          expected.X == actual.Y);
        }