chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
0 votes
In Isolator 6.0.1 this behavior happens:

[ img ]
[TestClass, Isolated]
public partial class Tests
{
   [DllImport("user32.dll")]
   private static extern bool SetForegroundWindow(IntPtr windowHandle);

   [TestMethod]
   public void Test()
   {
      Isolate.Verify.WasCalledWithExactArguments(() => SetForegroundWindow(IntPtr.Zero));
   }
}
asked by Neil (27.7k points)

2 Answers

0 votes
Hi Neil,

Another great catch, you are on a roll today :) Unfortunately, extern method recording/verification is not currently supported. In order to test them you would need to wrap them in a managed wrapper and fake/verify it.

Thanks,
Doron
Typemock Support
answered by doron (16.5k points)
0 votes
Thanks Doron.
answered by Neil (27.7k points)
...