测试异常写法

 

        /// <summary>
        ///SaveOrUpdate 的测试
        ///</summary>
        [Test]
        public void SaveOrUpdateTest()
        {
            BLLContractScenicPrice target = new BLLContractScenicPrice(); // TODO: 初始化为适当的值

            ContractScenicPrice csp = null; // TODO: 初始化为适当的值

            Assert.Throws<ArgumentNullException>(delegate { target.SaveOrUpdate(csp); });
        }

相关文章:

  • 2021-09-10
  • 2022-01-16
  • 2022-02-24
  • 2021-08-11
  • 2022-01-21
  • 2022-02-06
  • 2021-08-14
猜你喜欢
  • 2021-09-05
  • 2021-12-07
  • 2021-06-22
  • 2021-06-23
  • 2022-02-22
相关资源
相似解决方案