Re-Enable Simulation dirty-flag test

In preparation for refactoring, and exposing the dirty flag we re-enable the dirty flag test on resetMap
This commit is contained in:
Unknown 2018-10-21 11:38:57 +02:00
parent ae26496730
commit 1f435617da
1 changed files with 7 additions and 4 deletions

View File

@ -27,14 +27,17 @@ void main() {
expect(sut.map, isNot(same(oldMap)));
});
});
group("reset", () {
test("returns a map filled with 'false' ", () {
expect(sut.reset(), allOf(TypeMatcher<Grid>(), isNot(contains(true))));
group("resetMap", () {
test("sets the internal map filled with 'false' ", () {
sut.map.set(1, 1, true);
sut.reset();
expect(sut.map, allOf(TypeMatcher<Grid>(), isNot(contains(true))));
});
test("sets the simulation to need re-rendering", () {
sut.dirty = false;
sut.reset();
expect(sut.dirty, true);
}, skip: "can not find a way to set dirty to true first yet");
});
});
group("save&load", () {
test(