-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix invalid cast in single item source (#23)
- Loading branch information
Showing
5 changed files
with
92 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ceCollectionConfiguration/Dependencies.cs → test/Runly.Tests/Dependencies.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using FluentAssertions; | ||
using Runly.Testing; | ||
using System.Threading.Tasks; | ||
using Xunit; | ||
|
||
namespace Runly.Tests.Scenarios.Running | ||
{ | ||
public class Running_a_job | ||
{ | ||
[Fact] | ||
public async Task should_run_a_no_config_job() | ||
{ | ||
using var runner = new TestHost<JobNoConf>(new Config()).BuildRunner(); | ||
|
||
await runner.RunAsync(); | ||
|
||
runner.Execution.IsComplete.Should().BeTrue(); | ||
runner.Execution.Disposition.Should().Be(Disposition.Successful); | ||
} | ||
|
||
[Fact] | ||
public async Task should_run_a_single_item_job() | ||
{ | ||
using var runner = new TestHost<JobSingleItem>(new Config()).BuildRunner(); | ||
|
||
await runner.RunAsync(); | ||
|
||
runner.Execution.IsComplete.Should().BeTrue(); | ||
runner.Execution.Disposition.Should().Be(Disposition.Successful); | ||
} | ||
} | ||
} |
Oops, something went wrong.