コード例 #1
0
        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);
        }
コード例 #2
0
 public void InvalidFrames_ThrowsArgumentException()
 {
     Assert.ThrowsException <ArgumentException>(() =>
                                                UniqueViewTimeDigest.FromStartEndPairs(new string[]
     {
         "0-150",
         "150-0",
     })
                                                );
 }
コード例 #3
0
 public void OverlappingFrames()
 {
     Assert.AreEqual(
         (uint)400,
         UniqueViewTimeDigest.FromStartEndPairs(new string[]
     {
         "0-100",
         "50-150",
         "300-550",
     }).Uvt
         );
 }