Fix Engine Test case
This commit is contained in:
parent
952179eee3
commit
7a3fdf3681
1 changed files with 2 additions and 2 deletions
|
@ -17,12 +17,12 @@ void main() {
|
||||||
|
|
||||||
test("Engine does not throw errors when calling render directly", () {
|
test("Engine does not throw errors when calling render directly", () {
|
||||||
// anonymous function necessary since throws can not use functions with args
|
// anonymous function necessary since throws can not use functions with args
|
||||||
expect(() => sut.render(), isNot(throwsNoSuchMethodError));
|
expect(() => sut.render, isNot(throwsNoSuchMethodError));
|
||||||
});
|
});
|
||||||
|
|
||||||
test("Engine does not throw errors when processing without attached canvas", () {
|
test("Engine does not throw errors when processing without attached canvas", () {
|
||||||
// anonymous function necessary since throws can not use functions with args
|
// anonymous function necessary since throws can not use functions with args
|
||||||
expect(() => sut.process(1000), isNot(throwsNoSuchMethodError));
|
expect(() => sut.process, isNot(throwsNoSuchMethodError));
|
||||||
});
|
});
|
||||||
|
|
||||||
test("setCanvas allows setting a canvas for an engine at any point", () {
|
test("setCanvas allows setting a canvas for an engine at any point", () {
|
||||||
|
|
Loading…
Reference in a new issue