public void Should_Add_Created_Controller_To_List() { // Arrange var expectedControllers = new List <IController>(); for (var i = 0; i < 10; i++) { var fixture = _fixture .Build <Controller>() .Create(); var controller = _sut.SetPosition(fixture.Rover.PosX, fixture.Rover.PosY, fixture.Rover.Bearing); expectedControllers.Add(controller); } // Act var result = _sut.GetAll(); // Assert result.Should().BeEquivalentTo(expectedControllers); }