Exemple #1
0
func (t *MockTest) MockExpectationNotSatisfied() {
	ExpectCall(t.image, "At")(11, GreaterThan(19)).
		WillOnce(oglemock.Return(color.Gray{0}))
}
Exemple #2
0
func (t *MockTest) ExpectationSatisfied() {
	ExpectCall(t.image, "At")(11, GreaterThan(19)).
		WillOnce(oglemock.Return(color.Gray{0}))

	ExpectThat(t.image.At(11, 23), IdenticalTo(color.Gray{0}))
}