public void GetWaterLevelData_ReturnsCorrectLastWaterLevel() { //Arrange var stringEditUtility = new StringEditUtility(); var waterLevelData = stringEditUtility.GetWaterLevelData(testData); var expected = 11.090; //Act var actual = waterLevelData.Last().WaterLevel; //Assert actual.Should().Be(expected); }
public void GetWaterLevelData_ReturnsCorrectNumberOfElements() { //Arrange var stringEditUtility = new StringEditUtility(); var waterLevelData = stringEditUtility.GetWaterLevelData(testData); var expected = 10; //Act var actual = waterLevelData.Count; //Assert actual.Should().Be(expected); }