Skip to content

Instantly share code, notes, and snippets.

@guilhermesilveira
Created February 25, 2012 15:06
Show Gist options
  • Save guilhermesilveira/1908974 to your computer and use it in GitHub Desktop.
Save guilhermesilveira/1908974 to your computer and use it in GitHub Desktop.
class A {
int a(B b, C c) { return b.b1 + c.c1; }
}
on(b).b1(); returns(1)
on(c).c1(); returns(2)
assertEquals 2, a.a(b,c)
VERDE. maravilha
agora eu vou e altero a:
int a(B b, C c) { c.efeitoColateral(); return b.b1 + c.c1; }
resultado?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment