public void CanRename_should_not_throw_exception_if_names_are_different() { var command = new RenameAssetFolder { AppId = appId, FolderName = "New Folder Name" }; GuardAssetFolder.CanRename(command); }
public void CanRename_should_throw_exception_if_folder_name_is_empty() { var command = new RenameAssetFolder { AppId = appId }; ValidationAssert.Throws(() => GuardAssetFolder.CanRename(command), new ValidationError("Folder name is required.", "FolderName")); }