コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }