Skip to content

Commit

Permalink
Add some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyrrrz committed Oct 28, 2019
1 parent ce11aae commit 5a34ad5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ private static IEnumerable<TestCaseData> GetTestCases_Convert()
null
);

yield return new TestCaseData(
TimeSpan.FromHours(2) + TimeSpan.FromMinutes(10) + TimeSpan.FromSeconds(15),
"2 hours 10 minutes",
null
);

yield return new TestCaseData(
TimeSpan.FromSeconds(10),
"10 seconds",
Expand Down
3 changes: 3 additions & 0 deletions LightBulb.Tests/Services/LocationServiceTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ public async Task GetLocationAsync_Test()

[Test]
[TestCase("Kyiv, Ukraine")]
[TestCase("Dresden")]
[TestCase("UK")]
[TestCase("King's Cross, Platform 9 3/4")]
[TestCase("Statue of Liberty")]
public async Task GetLocationAsync_Query_Test(string query)
{
Expand Down
6 changes: 0 additions & 6 deletions LightBulb/App.config

This file was deleted.

0 comments on commit 5a34ad5

Please sign in to comment.