public void IsOnlineTest() { bool expected = true; bool actual; actual = _TSCloud.IsOnline(); Assert.AreEqual(expected, actual); }
public frmSignIn() { // Please check whether internet connection state is online or not on the other thread before authentication. if (!cloud_client.IsOnline()) { MessageBox.Show("Please check internet connection"); } InitializeComponent(); }