public void Map_ctor_creates_with_given_metadata() { IPersistentMap meta = new DummyMeta(); ConcreteAReference c = new ConcreteAReference(meta); Expect(c.meta(), SameAs(meta)); }
public void ResetMeta_sets_meta() { IPersistentMap meta = new DummyMeta(); ConcreteAReference c = new ConcreteAReference(); c.resetMeta(meta); Expect(c.meta(), EqualTo(meta)); }
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 Map_ctor_creates_with_given_metadata() { MockRepository mocks = new MockRepository(); IPersistentMap meta = mocks.StrictMock<IPersistentMap>(); mocks.ReplayAll(); ConcreteAReference c = new ConcreteAReference(meta); Expect(c.meta(), EqualTo(meta)); mocks.VerifyAll(); }
public void ResetMeta_sets_meta() { MockRepository mocks = new MockRepository(); IPersistentMap meta = mocks.StrictMock<IPersistentMap>(); mocks.ReplayAll(); ConcreteAReference c = new ConcreteAReference(); c.resetMeta(meta); Expect(c.meta(), EqualTo(meta)); mocks.VerifyAll(); }
public void Map_ctor_creates_with_given_metadata() { MockRepository mocks = new MockRepository(); IPersistentMap meta = mocks.StrictMock <IPersistentMap>(); mocks.ReplayAll(); ConcreteAReference c = new ConcreteAReference(meta); 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(); }
public void ResetMeta_sets_meta() { MockRepository mocks = new MockRepository(); IPersistentMap meta = mocks.StrictMock <IPersistentMap>(); mocks.ReplayAll(); ConcreteAReference c = new ConcreteAReference(); c.resetMeta(meta); 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(); }
public void Default_ctor_creates_with_null_metadata() { ConcreteAReference c = new ConcreteAReference(); Expect(c.meta(), Null); }