static void Main(string[] args) { // Generate a UVT digest from the start-end pairs passed as command line arguments. var digest = UniqueViewTimeDigest.FromStartEndPairs(args); // Write the calculated UVT. Console.WriteLine(digest.Uvt); }
public void InvalidFrames_ThrowsArgumentException() { Assert.ThrowsException <ArgumentException>(() => UniqueViewTimeDigest.FromStartEndPairs(new string[] { "0-150", "150-0", }) ); }
public void OverlappingFrames() { Assert.AreEqual( (uint)400, UniqueViewTimeDigest.FromStartEndPairs(new string[] { "0-100", "50-150", "300-550", }).Uvt ); }