Exemplo n.º 1
0
        public void CMTimeMappingFactoryMethods()
        {
            if (!UIDevice.CurrentDevice.CheckSystemVersion(9, 0))
            {
                Assert.Inconclusive("Requires 9.0+");
            }

            var first = new CMTimeRange()
            {
                Duration = new CMTime(12, 1), Start = new CMTime(1, 1)
            };
            var second = new CMTimeRange()
            {
                Duration = new CMTime(4, 1), Start = new CMTime(1, 1)
            };

            CMTimeMapping map = CMTimeMapping.Create(first, second);

            CompareCMTimeRange(map.Source, first, "CMTimeMapping.Create");
            CompareCMTimeRange(map.Target, second, "CMTimeMapping.Create");

            map = CMTimeMapping.CreateEmpty(first);
            CompareCMTimeRange(map.Source, CMTimeRange.InvalidRange, "CMTimeMapping.CreateEmpty");
            CompareCMTimeRange(map.Target, first, "CMTimeMapping.CreateEmpty");

            map = CMTimeMapping.CreateFromDictionary(new NSDictionary());
            CompareCMTimeRange(map.Source, CMTimeRange.InvalidRange, "CMTimeMapping.CreateFromDictionary");
            CompareCMTimeRange(map.Target, CMTimeRange.InvalidRange, "CMTimeMapping.CreateFromDictionary");

            Assert.IsNotNull(map.AsDictionary(), "CMTimeMapping AsDictionary");

            Assert.IsNotNull(map.Description, "CMTimeMapping Description");
        }
Exemplo n.º 2
0
 public virtual void EncodeCMTimeMapping(CMTimeMapping timeMapping, [Unwrapped] string forKey)
 {
 }