private void Test_Connected(string _testString, string _channel) { try { Successful = ChatParsing.detectConnected(_testString); } catch (Exception ex) { FailedException = ex; } }
private void Test_NewSubscriber(string _testString, string _channel) { try { if (ChatParsing.detectNewSubscriber(_testString, _channel)) { NewSubscriber sub = new NewSubscriber(_testString); if (sub.Channel == _channel && (sub.Name != null && sub.Name.Length > 1)) { Successful = true; } } else { Successful = false; } } catch (Exception ex) { FailedException = ex; } }