testing 

Send to Kindle
home » snippets » dart » testing



Snippets

// expect equals.
expect("foo", equals("foo"));

// expect a function to raise an expection.
expect(() => foo(a, b, c), throws);