public void TestNoTrail() { Assert.Equal(new[] { "*", "LIST" }, ParametersTextParser.Parse("* LIST")); Assert.Equal(new[] { "#chan", "Hey!" }, ParametersTextParser.Parse("#chan Hey!")); Assert.Equal(new[] { "#chan", "Hey", "there!" }, ParametersTextParser.Parse("#chan Hey there!")); }
public void TestTrail() { Assert.Equal(new[] { "*", "LS", "multi-prefix sasl" }, ParametersTextParser.Parse("* LS :multi-prefix sasl")); Assert.Equal(new[] { "REQ", "sasl message-tags foo" }, ParametersTextParser.Parse("REQ :sasl message-tags foo")); Assert.Equal(new[] { "#chan", "Hey!" }, ParametersTextParser.Parse("#chan :Hey!")); Assert.Equal(new[] { "#chan", "Hey there!" }, ParametersTextParser.Parse("#chan :Hey there!")); }
public void TestEmptyTrail() { Assert.Equal(new[] { "*", "LIST", "" }, ParametersTextParser.Parse("* LIST :")); }