I don't want this to be used as a mocking library, so I don't want to return default values for non-unit functions. However, it is technically valid usage to want to verify that a function with a unit return was called, when there are other functions with non unit returns on the interface definition. Just ensuring that the functions throw an exception so that tests can't become dependent on default returns should be good enough,
I don't want this to be used as a mocking library, so I don't want to return default values for non-unit functions. However, it is technically valid usage to want to verify that a function with a unit return was called, when there are other functions with non unit returns on the interface definition. Just ensuring that the functions throw an exception so that tests can't become dependent on default returns should be good enough,