private void OverLoadCtorExercise(OverLoadedCtor oc, int i, string s) { Assert.Equal(i, oc.I); Assert.Equal(s, oc.S); oc.Concat("Ayende", "Rahien"); LastCall.On(oc).Return("Hello, World"); mocks.Replay(oc); Assert.Equal("Hello, World", oc.Concat("Ayende", "Rahien")); mocks.Verify(oc); }
private void OverLoadCtorExercise(OverLoadedCtor oc, int i, string s) { Assert.Equal(i, oc.I); Assert.Equal(s, oc.S); oc.Expect(x => x.Concat("Ayende", "Rahien")) .Return("Hello, World"); Assert.Equal("Hello, World", oc.Concat("Ayende", "Rahien")); oc.VerifyAllExpectations(); }
private void OverLoadCtorExercise(OverLoadedCtor oc, int i, string s) { Assert.Equal(i, oc.I); Assert.Equal(s, oc.S); oc.Expect(x => x.Concat("Ayende", "Rahien")).Return("Hello, World"); Assert.Equal("Hello, World", oc.Concat("Ayende", "Rahien")); oc.VerifyAllExpectations(); }
private void OverLoadCtorExercise(OverLoadedCtor oc, int i, string s) { Assert.AreEqual(i, oc.I); Assert.AreEqual(s, oc.S); oc.Concat("Ayende", "Rahien"); LastCall.On(oc).Return("Hello, World"); mocks.Replay(oc); Assert.AreEqual("Hello, World", oc.Concat("Ayende", "Rahien")); mocks.Verify(oc); }