示例#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));
 }