This project will tell you if you are connected to the internet or not. You just have to click the start button.
You could try turning your internet off and see what happens.