Hi Guys,
I've just discovered a difference between the behaviour of Verify and VerifyWithTimeout which I think is a bug.
Please see the following simple testcase that demonstrates the difference. I would expect both to pass, but VerifyWithTimeout fails...
I'm using TypeMock 3.7.1
using NUnit.Framework;
using TypeMock;
namespace VerifyWithTimeout
{
[TestFixture]
public class VerifyWithTimeoutTests
{
[Test()]
public void Verify()
{
MockManager.Init();
Mock mock = MockManager.MockAll(typeof (TestClass));
mock.ExpectGetAlways("Property", "MockedValue");
MockManager.Verify();
}
[Test()]
public void VerifyWithTimeout()
{
MockManager.Init();
Mock mock = MockManager.MockAll(typeof (TestClass));
mock.ExpectGetAlways("Property", "MockedValue");
MockManager.VerifyWithTimeout();
}
}
public class TestClass
{
public string Property
{
get { return "ActualValue"; }
}
}
}
Cheers,
Pete
________
Buy herbalaire