pragma solidity >= 0.5.0 < 0.7.0; import "./simple_storage.sol"; contract MyTest { SimpleStorage foo; uint i = 0; function beforeEach() public { foo = new SimpleStorage(); if (i == 1) { foo.set(200); } i += 1; } function initialValueShouldBe100() public returns (bool) { return Assert.equal(foo.get(), 100, "initial value is not correct"); } function valueIsSet200() public returns (bool) { return Assert.equal(foo.get(), 200, "value is not correct after first execution"); } }