Hi there.
I was reading the latest TypeMock blog entry, when I spotted this code
Code:
public static void VerifyInstanceWasNotCalled<T>(T fakeObject)
{
foreach (MethodInfo info in typeof (T).GetMethods())
{
string methodName = info.Name;
Isolate.Verify.NonPublic.WasNotCalled(fakeObject, methodName);
}
}
How can I rewrite this in VB? I don't know how to replicate the 'Isolate.Verfiy...' line.
Here's what I have so far:
Code:
Public Sub VerifyInstanceWasNotCalled(Of T)(ByVal fakeObject As T)
For Each info As MethodInfo In GetType(T).GetMethods()
Dim methodName As String = info.Name
Using AssertCalls.NeverHappened
'Isolate.Verify.NonPublic.WasNotCalled(fakeObject, methodName) <- How?
End Using
Next
End Sub
Cheers.
Jas.