コード例 #1
0
 public void GetOwnerList_ManualMock_MethodCalled()
 {
     Owners owners = new Owners();
     MockDAL mock = new MockDAL();
     owners.SetDal(mock);
     var ret = owners.GetOwnerList();
     Assert.AreEqual(true, mock.ExecuteReaderCalled);
 }
コード例 #2
0
        public void GetOwnerList_ManualMock_MethodCalled()
        {
            Owners  owners = new Owners();
            MockDAL mock   = new MockDAL();

            owners.SetDal(mock);
            var ret = owners.GetOwnerList();

            Assert.AreEqual(true, mock.ExecuteReaderCalled);
        }