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

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

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