コード例 #1
0
        public async Task ValidateDimensionExistsAsync()
        {
            await rickService.CreateDimension("C-152");

            Assert.ThrowsAsync <RickLocationException>(async() => { await rickService.Create("C-152"); });
        }
コード例 #2
0
 public void ValidateNameEmpty()
 {
     Assert.ThrowsAsync <System.ArgumentException>(async() => { await rickService.CreateDimension(""); });
     Assert.ThrowsAsync <System.ArgumentException>(async() => { await rickService.CreateDimension(null); });
 }