示例#1
0
        public void ShouldRequireValidPathId()
        {
            var command = new DeletePath {
                Id = 99
            };

            FluentActions.Invoking(() =>
                                   SendAsync(command)).Should().ThrowAsync <NotFoundException>();
        }
示例#2
0
 private void metroButton4_Click(object sender, EventArgs e)
 {
     TopPath = metroTextBox1.Text;
     DeletePath.DelPath(TopPath);
     metroLabel5.ForeColor = Color.Red;
     metroLabel5.Text      = DeletePath.ErrDic.Item2;
     if (DeletePath.ErrDic.Item1 == 0)
     {
         metroLabel5.ForeColor = Color.Green;
         metroLabel5.Text      = DeletePath.ErrDic.Item2;
     }
     Thread.Sleep(2000);
 }