Пример #1
0
        public void DereferencePointerPointer()
        {
            IAtom mock = new Mock <IAtom>().Object;
            IAtom ptr  = new AtomRef(new AtomRef(mock));

            Assert.AreSame(mock, AtomRef.Deref(ptr));
        }
Пример #2
0
        public void DereferenceNonPointer()
        {
            IAtom mock = new Mock <IAtom>().Object;

            Assert.AreSame(mock, AtomRef.Deref(mock));
        }
Пример #3
0
 public void DereferenceNullPointer()
 {
     Assert.IsNull(AtomRef.Deref(null));
 }