Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The old way:

Code Block
java
java
[Test]
public void MyOldTest() 
{ 
// Record your expectations here 
Expect.Call(myObject.MyProperty).Return(1);

mocks.ReplayAll();

// do your work here 
int i = myObject.MyProperty;

// check you values

mocks.VerifyAll();

Assert.AreEqual(1, i);

}

...