public void Process_CreatesOnlyUniqueItems() { //Arrange var shoreLineFiller = new ShorelineFiller(_dataProcessingParams); //Act shoreLineFiller.Process(_data); var actual = _data.LocationSettings.Shoreline1; //Assert actual.Should().OnlyHaveUniqueItems(); }
public void Process_CreatesCorrectAmountOfLocations() { //Arrange var shoreLineFiller = new ShorelineFiller(_dataProcessingParams); var expected = 285; //Act shoreLineFiller.Process(_data); var actual = _data.LocationSettings.Shoreline1.Count; //Assert actual.Should().Be(expected); }
public void Process_CreatesCorrectLastLocation() { //Arrange var shoreLineFiller = new ShorelineFiller(_dataProcessingParams); var expectedLat = 67.248397M; var expectedLng = 22.875103M; //Act shoreLineFiller.Process(_data); var actualLat = Math.Round(_data.LocationSettings.Shoreline1.Last().GpsLat, 6); var actualLng = Math.Round(_data.LocationSettings.Shoreline1.Last().GpsLng, 6); //Assert actualLat.Should().Be(expectedLat); actualLng.Should().Be(expectedLng); }