예제 #1
0
        public void Meta_ctor_has_meta()
        {
            MockRepository mocks = new MockRepository();
            IPersistentMap meta = mocks.StrictMock<IPersistentMap>();
            mocks.ReplayAll();

            Range r = new Range(meta, 2, 5);

            Expect(r.meta(), EqualTo(meta));

            mocks.VerifyAll();
        }
예제 #2
0
 public void Basic_ctor_has_no_meta()
 {
     Range r = new Range(2, 5);
     Expect(r.meta(), Null);
 }
예제 #3
0
 public void Meta_ctor_has_meta()
 {
     IPersistentMap meta = new DummyMeta();
     Range r = new Range(meta, 2, 5);
     Expect(r.meta(), EqualTo(meta));
 }