pragma solidity ^0.4.7; import "./tests.sol"; import "./simple_storage.sol"; contract MyTest { SimpleStorage foo; uint i = 0; function beforeAll() { foo = new SimpleStorage(); } function beforeEach() { if (i == 1) { foo.set(200); } i += 1; } function initialValueShouldBe100() public { Assert.equal(foo.get(), 100, "initial value is not correct"); } function initialValueShouldBe200() public { Assert.equal(foo.get(), 200, "initial value is not correct"); } }