Exemple #1
0
        public void Get_CellSize_In_InValid_Tile_Level_Will_Throw_ArgumentException(int input)
        {
            //Arrange
            var _cellSize = new CellSize();

            //Act
            Action actual = () => _cellSize.GetCellSizeInDegree(input);

            //Assert
            Assert.Throws <ArgumentException>(actual);
        }
Exemple #2
0
        public void Get_CellSize_In_Valid_Tile_Level(int input, double expected)
        {
            //Arrange
            var _cellSize = new CellSize();

            //Act
            var result = _cellSize.GetCellSizeInDegree(input);

            //Assert
            Assert.Equal(result, expected);
        }