I thought that MustBeCalled would fail on the Assert in the following situation but the test passes (note, no call is made to the "MustBeCalled" method).
Public Class Foo
Public Shared Sub Bar()
Debug.Print("Wahoo!")
End Sub
End Class
<TestMethod()> _
Public Sub Foo_Test()
Mock.SetupStatic(GetType(Foo), Behavior.Strict)
Mock.Arrange(Sub() Foo.Bar()).MustBeCalled()
Mock.Assert(GetType(Foo))
End Sub
I am using version 2013.3.1119.2 of JustMock in Visual Studio 2012 and I have verified that the Profiler is enabled. If I don't arrange the Foo.Bar call, the test fails, as expected because the behavior is set to Strict. Is there another way to do the Arrange or Assert so that this works as expected?