Hi,

I have the following classes:

class Foo {

    public void DoSomeThing(string key, string value, DateTime
expiryDate) {
        ....
    }
}

class Bar {

    public void Spooge(Foo foo) {
        foo.DoSomeThing("hello", "world", DateTime.Now.AddYears(1));
    }
}

I want to write a test for Bar and make sure that method Spooge is
calling Foo with the right arguments.  I create a mock Foo and pass it
to Spooge but what should the "Expect" call look like to make sure
that Spooge passes in the three arguments "hello", "world",
DateTime.Now.AddYears(1)?  The string arguments are easy but using a
simple match against DateTime will almost certainly fail.

Thanks
Dave.

-- 
You received this message because you are subscribed to the Google Groups 
"Rhino.Mocks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rhinomocks?hl=en.

Reply via email to