Esempio n. 1
0
        public void DereferencePointerPointer()
        {
            IAtom mock = new Mock <IAtom>().Object;
            IAtom ptr  = new AtomRef(new AtomRef(mock));

            Assert.AreSame(mock, AtomRef.Deref(ptr));
        }
Esempio n. 2
0
        public void DereferenceNonPointer()
        {
            IAtom mock = new Mock <IAtom>().Object;

            Assert.AreSame(mock, AtomRef.Deref(mock));
        }
Esempio n. 3
0
 public void DereferenceNullPointer()
 {
     Assert.IsNull(AtomRef.Deref(null));
 }