public void GetOwningResourceTokens_Test() { { var transactionResult = new TransactionResult(); var owningTokenFeeDic = transactionResult.GetOwningResourceTokens(); owningTokenFeeDic.Count.ShouldBe(0); } { var symbol = "ELF"; var amount = 100; var transactionResult = new TransactionResult(); transactionResult.Logs.Add(new LogEvent { Name = "ResourceTokenOwned", NonIndexed = new ResourceTokenOwned { Symbol = symbol, Amount = amount }.ToByteString() }); var owningTokenFeeDic = transactionResult.GetOwningResourceTokens(); owningTokenFeeDic.Count.ShouldBe(1); owningTokenFeeDic[symbol].ShouldBe(amount); } }