public void Map_ctor_creates_with_given_metadata()
        {
            IPersistentMap meta = new DummyMeta();

            ConcreteAReference c = new ConcreteAReference(meta);
            Expect(c.meta(), SameAs(meta));
        }
Beispiel #2
0
        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));
        }
Beispiel #4
0
        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));
        }
Beispiel #6
0
        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();
        }
Beispiel #9
0
        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();
        }
Beispiel #10
0
        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();
        }
Beispiel #11
0
        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();
        }
Beispiel #12
0
        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();
        }
Beispiel #13
0
        public void Default_ctor_creates_with_null_metadata()
        {
            ConcreteAReference c = new ConcreteAReference();

            Expect(c.meta(), Null);
        }
Beispiel #14
0
 public void Default_ctor_creates_with_null_metadata()
 {
     ConcreteAReference c = new ConcreteAReference();
     Expect(c.meta(), Null);
 }