public void TestContainsUsernameColon() { Assert.IsTrue(MessageNotifier.CheckContainsUsername("username: hi", "username")); }
public void TestContainsUsernameSpecialCharactersNegative() { Assert.IsFalse(MessageNotifier.CheckContainsUsername("Test pad[#^-^#]oru message", "[#^-^#]")); }
public void TestContainsUsernameAtSign() { Assert.IsTrue(MessageNotifier.CheckContainsUsername("@username hi", "username")); }
public void TestContainsUsernameUnicodeNegative() { Assert.IsFalse(MessageNotifier.CheckContainsUsername("Test ha\u0460\u0460o message", "\u0460\u0460")); }
public void TestContainsUsernameSpecialCharactersPositive() { Assert.IsTrue(MessageNotifier.CheckContainsUsername("Test [#^-^#] message", "[#^-^#]")); }
public void TestContainsUsernameBetweenInterpunction() { Assert.IsTrue(MessageNotifier.CheckContainsUsername("Hello 'test'-message", "Test")); }
public void TestContainsUsernameUnicode() { Assert.IsTrue(MessageNotifier.CheckContainsUsername("Test \u0460\u0460 message", "\u0460\u0460")); }
public void TestContainsUsernameEndOfLineNegative() { Assert.IsFalse(MessageNotifier.CheckContainsUsername("This is a notificationtest", "Test")); }
public void TestContainsUsernameStartOfLineNegative() { Assert.IsFalse(MessageNotifier.CheckContainsUsername("Testmessage", "Test")); }
public void TestContainsUsernameMidlineNegative() { Assert.IsFalse(MessageNotifier.CheckContainsUsername("This is a testmessage for notifications", "Test")); }
public void TestContainsUsernameEndOfLinePositive() { Assert.IsTrue(MessageNotifier.CheckContainsUsername("This is a test", "Test")); }
public void TestContainsUsernameStartOfLinePositive() { Assert.IsTrue(MessageNotifier.CheckContainsUsername("Test message", "Test")); }