mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-05 05:27:21 +00:00
Improved the dialogs for local data sources and the Batch Processing assistant (#1096)
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
This commit is contained in:
1 parent
149395c1a0
commit
f7e6ceb915
45 files changed
+2514
-361
No files matched your search
@@ -0,0 +1,31 @@
|
||||
using AIStudio.Components;
|
||||
using AIStudio.Tools;
|
||||
|
||||
namespace AIStudio.Tests.Components;
|
||||
|
||||
public sealed class ManagePandocDependencyTests
|
||||
{
|
||||
[Test]
|
||||
public void TheInstallationPromptStaysHiddenWhileAvailabilityIsChecked()
|
||||
{
|
||||
Assert.That(ManagePandocDependency.ShouldShowInstallationPrompt(null), Is.False);
|
||||
}
|
||||
|
||||
[TestCase(true)]
|
||||
[TestCase(false)]
|
||||
public void AnAvailableInstallationNeedsNoPrompt(bool isLocal)
|
||||
{
|
||||
var installation = new PandocInstallation(true, string.Empty, true, "3.7.0.2", isLocal);
|
||||
|
||||
Assert.That(ManagePandocDependency.ShouldShowInstallationPrompt(installation), Is.False);
|
||||
}
|
||||
|
||||
[TestCase(true)]
|
||||
[TestCase(false)]
|
||||
public void AnUnavailableOrOutdatedInstallationShowsThePrompt(bool checkWasSuccessful)
|
||||
{
|
||||
var installation = new PandocInstallation(checkWasSuccessful, "Unavailable", false, string.Empty, false);
|
||||
|
||||
Assert.That(ManagePandocDependency.ShouldShowInstallationPrompt(installation), Is.True);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user