Fixed to use Assertions methods instead of assert.