My test method look like this:
[Test]
public void Generated_CaseNumber_should_be_set_as_LastCaseNumber_in_PropertiesManager()
{
String generatedCaseNumber = _sut.NextCaseNumber();
}
_sut object has a dependency to mocked object of type IPropertiesManager. Method _sut.NextCaseNumber() should generate unique CaseNumber, store it in IPropertiesManager (using UpdateLastCaseNumber() method) and then return generated CaseNumber.
How do I assert that _sut.NextCaseNumber() called UpdateLastCaseNumber() on IPropertiesManager type and passed in the same parameter that it then returned to the caller of NextCaseNumber()?