drewbourne/hamcrest-as3

Matcher suggestions

drewbourne opened this issue · 0 comments

hasKeys(...keys) matches an Object if it has the given keys. Values are ignored.
hasOnlyKeys(...keys) matches an Object if has only the given keys. Values are ignored.
hasOnlyProperties(properties) matches an Object if has only the given properties and values. Stricter version of hasProperties()
arrayInAnyOrder(...matchers) similar to hasItems() number of matchers must be equal to the length of the array being matched.
children(childAt0Matcher, ...childAtNMatcher) matches a DisplayObjectContainer if the child at each index matches the given matcher.