Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
search indexing, fix for cron definition for seq polling
- Loading branch information
1 parent
6e50c3b
commit bf7c35e
Showing
20 changed files
with
436 additions
and
52 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
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
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,7 @@ | ||
using System; | ||
|
||
namespace SysExtensions.Net { | ||
public static class UriExtensions { | ||
public static UriBuilder Build(this Uri uri) => new UriBuilder(uri); | ||
} | ||
} |
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
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 |
---|---|---|
@@ -1,5 +1,20 @@ | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
using System; | ||
using FluentAssertions; | ||
using Humanizer; | ||
using NUnit.Framework; | ||
using SysExtensions.Text; | ||
|
||
namespace Tests { | ||
[TestClass] public class YtReaderTests { } | ||
public static class FormattingTests { | ||
|
||
[Test] | ||
public static void TestTimestampHumanise() { | ||
120.Seconds().HumanizeShort().Should().Be("2m 0s"); | ||
0.Seconds().HumanizeShort().Should().Be("0s"); | ||
12.Seconds().HumanizeShort().Should().Be("12s"); | ||
TimeSpan.FromMilliseconds(2040).HumanizeShort().Should().Be("2s"); | ||
new TimeSpan(1, 2, 3, 4).HumanizeShort().Should().Be("1d 2h"); | ||
new TimeSpan(1, 2, 3, 4).HumanizeShort(4).Should().Be("1d 2h 3m 4s"); | ||
} | ||
} | ||
} |
Oops, something went wrong.