Skip to content

Commit

Permalink
Increased coverage to 100%.
Browse files Browse the repository at this point in the history
  • Loading branch information
hennadiilu committed Oct 7, 2022
1 parent 6781725 commit 78fabab
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
53 changes: 53 additions & 0 deletions Heleonix.Execution.Tests/ArgsBuilderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

namespace Heleonix.Execution.Tests
{
using System;
using System.Collections.Generic;
using Heleonix.Execution;
using Heleonix.Testing.NUnit.Aaa;
Expand Down Expand Up @@ -183,6 +184,16 @@ public static void AddKeys()
Assert.That(result, Is.Empty);
});
});

And("keys is empty", () =>
{
keys = Array.Empty<string>();

Should("provide an empty string", () =>
{
Assert.That(result, Is.Empty);
});
});
});

And("a condition is false", () =>
Expand Down Expand Up @@ -325,6 +336,16 @@ public static void AddValues()
Assert.That(result, Is.Empty);
});
});

And("values is empty", () =>
{
values = Array.Empty<string>();

Should("provide an empty string", () =>
{
Assert.That(result, Is.Empty);
});
});
});

And("a condition is false", () =>
Expand Down Expand Up @@ -509,6 +530,17 @@ public static void AddArguments()
Assert.That(result, Is.Empty);
});
});

And("the values is empty", () =>
{
multipleTimes = false;
values = Array.Empty<string>();

Should("provide an empty string", () =>
{
Assert.That(result, Is.Empty);
});
});
});

And("the key is an empty string", () =>
Expand Down Expand Up @@ -749,6 +781,16 @@ public static void AddPaths1()
Assert.That(result, Is.Empty);
});
});

And("the paths is empty", () =>
{
paths = Array.Empty<string>();

Should("provide an empty string", () =>
{
Assert.That(result, Is.Empty);
});
});
});

And("a condition is false", () =>
Expand Down Expand Up @@ -827,6 +869,17 @@ public static void AddPaths2()
});
});

And("the paths is empty", () =>
{
multipleTimes = false;
paths = Array.Empty<string>();

Should("provide an empty string", () =>
{
Assert.That(result, Is.Empty);
});
});

And("the key is an empty string", () =>
{
key = string.Empty;
Expand Down
13 changes: 13 additions & 0 deletions Heleonix.Execution.Tests/ExeResultTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,19 @@ public static void Equals1()
Assert.That(areEqual, Is.False);
});
});

And("the second exe result is null", () =>
{
Arrange(() =>
{
exeResult2 = null;
});

Should("return false", () =>
{
Assert.That(areEqual, Is.False);
});
});
});
}
}
Expand Down

0 comments on commit 78fabab

Please sign in to comment.