public void AlterMeta_changes_meta() { IPersistentMap meta = new DummyMeta(); IFn fn = DummyFn.CreateForMetaAlter(meta); ConcreteAReference c = new ConcreteAReference(); c.alterMeta(fn, null); Expect(c.meta(), SameAs(meta)); }
public void AlterMeta_changes_meta() { MockRepository mocks = new MockRepository(); IPersistentMap meta = mocks.StrictMock<IPersistentMap>(); IFn fn = mocks.StrictMock<IFn>(); RMExpect.Call(fn.applyTo(null)).IgnoreArguments().Return(meta); mocks.ReplayAll(); ConcreteAReference c = new ConcreteAReference(); c.alterMeta(fn, null); Expect(c.meta(), EqualTo(meta)); mocks.VerifyAll(); }
public void AlterMeta_changes_meta() { MockRepository mocks = new MockRepository(); IPersistentMap meta = mocks.StrictMock <IPersistentMap>(); IFn fn = mocks.StrictMock <IFn>(); RMExpect.Call(fn.applyTo(null)).IgnoreArguments().Return(meta); mocks.ReplayAll(); ConcreteAReference c = new ConcreteAReference(); c.alterMeta(fn, null); Expect(c.meta(), EqualTo(meta)); mocks.VerifyAll(); }