Skip to content

Commit

Permalink
Add GasLeft UT
Browse files Browse the repository at this point in the history
  • Loading branch information
ProDog authored Mar 26, 2020
1 parent 3b8c6ab commit 6b29aaf
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,17 @@ public void Test_InvocationCounter()
Assert.IsInstanceOfType(item, typeof(Integer));
Assert.AreEqual(0x01, item.GetBigInteger());
}

[TestMethod]
public void Test_GasLeft()
{
var result = _engine.ExecuteTestCaseStandard("getGasLeft");
Assert.AreEqual(1, result.Count);

var item = result.Pop();
Assert.IsInstanceOfType(item, typeof(Integer));
Assert.AreEqual(-1, item.GetBigInteger());
}

[TestMethod]
public void Test_Time()
Expand Down

0 comments on commit 6b29aaf

Please sign in to comment.