コード例 #1
0
        public void DeleteItemById_ItemDoesNotExist_Throws()
        {
            MyRepositoryId id = new MyRepositoryId();

            Assert.Throws <ArgumentOutOfRangeException>(() => DataMapperUnderTest.DeleteItem(id));
        }
コード例 #2
0
        public void GetItem_IdNotInRepository_Throws()
        {
            MyRepositoryId id = new MyRepositoryId();

            Assert.Throws <ArgumentOutOfRangeException>(() => DataMapperUnderTest.GetItem(id));
        }