public void Should_parse_callback_data_without_args() { var callbackData = new CallbackData <TestState>(TestState.Pending); Assert.NotNull(callbackData); Assert.Equal(TestState.Pending, callbackData.NextState); Assert.Empty(callbackData.Args); var callbackDataStr = callbackData.ToString(); Assert.Equal("1>", callbackDataStr); var parsed = CallbackData <TestState> .Parse(callbackDataStr); Assert.NotNull(parsed); Assert.Equal(TestState.Pending, parsed.NextState); Assert.Empty(parsed.Args); }