public void MonsterCollect() { var filePath = Path.Combine(Path.GetTempPath(), Path.GetTempFileName()); var resultCode = _command.MonsterCollect(1, filePath); Assert.Equal(0, resultCode); var rawAction = Convert.FromBase64String(File.ReadAllText(filePath)); var decoded = (List)_codec.Decode(rawAction); string type = (Text)decoded[0]; Assert.Equal(nameof(Nekoyume.Action.MonsterCollect), type); Dictionary plainValue = (Dictionary)decoded[1]; var action = new MonsterCollect(); action.LoadPlainValue(plainValue); Assert.Equal(1, action.level); }