The function **expect** it's an helper or syntax sugar to create the assertation. Because of D’s lookup shortcut syntax, one is able to use both expect(obj) and obj.expect to get an object wrapped around an Assertion instance
See Implementation
The function **expect** it's an helper or syntax sugar to create the assertation. Because of D’s lookup shortcut syntax, one is able to use both expect(obj) and obj.expect to get an object wrapped around an Assertion instance