public void Json_Test() { var action = ActionEvent.Ok(new Test()); var json = action.ToJson(); var obj = json.ToJToken().ToObject <ActionEvent <Test> >(); Assert.True(obj.IsOk()); Assert.Equal(action.Result.Start, obj.Result.Start); }