コード例 #1
0
        public void CanRename_should_not_throw_exception_if_names_are_different()
        {
            var command = new RenameAssetFolder {
                AppId = appId, FolderName = "New Folder Name"
            };

            GuardAssetFolder.CanRename(command);
        }
コード例 #2
0
        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"));
        }