I have a unit test that is attempting to test a very simple method. The method under test simply calls two other methods (interface methods that are marked as virtual in the implementation). I use the following code in the unit test....
The Target method is....
and here is the mocking setup....
The problem is the test says that expected called once but was called 0 times. What I see when I debug the code is that my passedMessage variable goes from a byte array to some other type of object (goes from saying byte[16] to count = 0 after the first method is called.
Any thoughts?