public void DereferencePointerPointer() { IAtom mock = new Mock <IAtom>().Object; IAtom ptr = new AtomRef(new AtomRef(mock)); Assert.AreSame(mock, AtomRef.Deref(ptr)); }
public void DereferenceNonPointer() { IAtom mock = new Mock <IAtom>().Object; Assert.AreSame(mock, AtomRef.Deref(mock)); }
public void DereferenceNullPointer() { Assert.IsNull(AtomRef.Deref(null)); }