コード例 #1
0
ファイル: TaskCommandFixture.cs プロジェクト: rh/mix
 public void ExecuteWithFileNotProperlySet()
 {
     Task task = new Set();
     var command = new TaskCommand(task);
     command.Context["file"] = null;
     // Not selecting any file is not considered an error
     Assert.IsTrue(command.Execute() == 0);
 }
コード例 #2
0
ファイル: TaskCommandFixture.cs プロジェクト: rh/mix
 public void ExecuteWithFileSet()
 {
     Task task = new Set();
     var command = new TaskCommand(task);
     // This will not actually select a file
     command.Context["file"] = "file";
     Assert.IsTrue(command.Execute() == 0);
 }
コード例 #3
0
ファイル: TaskCommandFixture.cs プロジェクト: rh/mix
 public void Execute()
 {
     Task task = new Set();
     var command = new TaskCommand(task);
     Assert.IsTrue(command.Execute() == 0);
 }