Mercurial > hg > Database > jungle-sharp
view src/test/csharp/jp.ac.u-ryukyu.ie.cr/jungle-network/operations/NetworkDeleteAttributeOperationTest.cs @ 13:4c8932dad7b2
Add Test and only NetworkTreeOperationLogTest.cs not work.
author | Kazuma |
---|---|
date | Sun, 23 Oct 2016 13:35:21 +0900 |
parents | |
children |
line wrap: on
line source
using UnityEngine; using System.Collections; using MsgPack; public class NetworkDeleteAttributeOperationTest : MonoBehaviour { // Use this for initialization void Start () { NetworkDeleteAttributeOperation op = new NetworkDeleteAttributeOperation("hoge"); ObjectPacker pack = new ObjectPacker(); byte[] value = pack.Pack(op); // unpackage ObjectPacker unpack = new ObjectPacker(); NetworkDeleteAttributeOperation mOp = unpack.Unpack<NetworkDeleteAttributeOperation>(value); print(mOp.getKey()); } }