Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
dusrdev committed Aug 23, 2024
1 parent da20aa5 commit 34d7585
Show file tree
Hide file tree
Showing 19 changed files with 12 additions and 12 deletions.
Empty file modified .gitattributes
100644 → 100755
Empty file.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified LICENSE.txt
100644 → 100755
Empty file.
Empty file modified PrettyConsole.Tests/Features/ColoredOutputTest.cs
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions PrettyConsole.Tests/Features/IndeterminateProgressBarTest.cs
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ public sealed class IndeterminateProgressBarTest : IPrettyConsoleTest {
public string FeatureName => "IndeterminateProgressBar";

public void Implementation() {
var prg = new IndeterminateProgressBar() {
ForegroundColor = Color.Green,
var prg = new IndeterminateProgressBar {
ForegroundColor = Color.Red,
DisplayElapsedTime = true
};
prg.RunAsync(Task.Delay(5000)).Wait();
Expand Down
4 changes: 2 additions & 2 deletions PrettyConsole.Tests/Features/MultiSelectionTest.cs
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ public sealed class MultiSelectionTest : IPrettyConsoleTest {
public string FeatureName => "MultiSelection";

public void Implementation() {
var options = new[] {
string[] options = [
"Option 1",
"Option 2",
"Option 3"
};
];

var selected = MultiSelection("Select an option:", options);
WriteLine($"Selected: [{string.Join(", ", selected)}]");
Expand Down
4 changes: 2 additions & 2 deletions PrettyConsole.Tests/Features/SelectionTest.cs
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ public sealed class SelectionTest : IPrettyConsoleTest {
public string FeatureName => "Selection";

public void Implementation() {
var options = new[] {
string[] options = [
"Option 1",
"Option 2",
"Option 3"
};
];

var selected = Selection("Select an option", options);
WriteLine($"Selected: {selected}");
Expand Down
Empty file modified PrettyConsole.Tests/Features/TableTest.cs
100644 → 100755
Empty file.
6 changes: 3 additions & 3 deletions PrettyConsole.Tests/Features/TreeMenuTest.cs
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ public sealed class TreeMenuTest : IPrettyConsoleTest {

public void Implementation() {
Dictionary<string, List<string>> options = new() {
{ "Option 1", new() { "Option 1.1", "Option 1.2", "Option 1.3" } },
{ "Option 2", new() { "Option 2.1", "Option 2.2", "Option 2.3" } },
{ "Option 3", new() { "Option 3.1", "Option 3.2", "Option 3.3" } }
{ "Option 1", ["Option 1.1", "Option 1.2", "Option 1.3"] },
{ "Option 2", ["Option 2.1", "Option 2.2", "Option 2.3"] },
{ "Option 3", ["Option 3.1", "Option 3.2", "Option 3.3"] }
};

var (main, sub) = TreeMenu("Select an option", options);
Expand Down
6 changes: 3 additions & 3 deletions PrettyConsole.Tests/IPrettyConsoleTest.cs
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
namespace PrettyConsole.Tests;

public interface IPrettyConsoleTest {
abstract string FeatureName { get; }
string FeatureName { get; }

abstract void Implementation();
void Implementation();

public void Render() {
WriteLine("Test: ", $" {FeatureName} " * Color.Black / Color.White);
WriteLine("Test: ", FeatureName * Color.Black / Color.White);
NewLine();
Implementation();
NewLine();
Expand Down
Empty file modified PrettyConsole.Tests/PrettyConsole.Tests.csproj
100644 → 100755
Empty file.
Empty file modified PrettyConsole.Tests/Program.cs
100644 → 100755
Empty file.
Empty file modified PrettyConsole.sln
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
Empty file modified docs/1.-Basic-Outputs.md
100644 → 100755
Empty file.
Empty file modified docs/2.-Basic-Inputs.md
100644 → 100755
Empty file.
Empty file modified docs/3.-Advanced-Options.md
100644 → 100755
Empty file.
Empty file modified docs/4.-Useful-additions.md
100644 → 100755
Empty file.
Empty file modified docs/Home.md
100644 → 100755
Empty file.

0 comments on commit 34d7585

Please sign in to comment.