public void Rover_CanBePutOnALocation() { var location = new Location(1, 1); var area = new Area(4, 4); IHeading heading = new NorthHeading(); //nereye bakıyor? var rover = new Rover(area, location, heading); rover.Location.Should().NotBeNull(); rover.Location.Should().Be(location); rover.Area.Should().NotBeNull(); rover.Area.Should().Be(area); rover.Heading.Should().NotBeNull(); rover.Heading.Should().Be(heading); }
public void When_Rover_Created_Then_Rover_And_Location_And_Heading_Should_Be_Same_With_Given() { var area = new Area(4, 4); var location = new Location(1, 1); IHeading heading = new NorthHeading(); var rover = new Rover(area, location, heading); rover.Location.Should().NotBeNull(); rover.Location.Should().Be(location); rover.Area.Should().NotBeNull(); rover.Area.Should().Be(area); rover.Heading.Should().NotBeNull(); rover.Heading.Should().Be(heading); }