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