예제 #1
0
 public void CreateFork_throws(
     [Values] ItemType itemType,
     [Values("OLD", null, "", " ")] string oldName,
     [Values("new", null, "", " ")] string newName
     )
 {
     if (string.IsNullOrWhiteSpace(oldName) || string.IsNullOrWhiteSpace(newName))
     {
         Assert.That(() =>
                     _commands.CreateFork(
                         itemType,
                         oldName,
                         newName
                         ),
                     Throws.ArgumentException);
     }
 }