Ejemplo n.º 1
0
        public void AsyncImageLoaderLoadWithDimensions()
        {
            tlog.Debug(tag, $"AsyncImageLoaderLoadWithDimensions START");

            using (AsyncImageLoader loader = new AsyncImageLoader())
            {
                try
                {
                    loader.Load(url, new Uint16Pair(100, 80));
                }
                catch (Exception e)
                {
                    tlog.Debug(tag, e.Message.ToString());
                    Assert.Fail("Caught Exception: Failed!");
                }
            }

            tlog.Debug(tag, $"AsyncImageLoaderLoadWithDimensions END (OK)");
        }
Ejemplo n.º 2
0
        public void AsyncImageLoaderLoadWithFittingMode()
        {
            tlog.Debug(tag, $"AsyncImageLoaderLoadWithFittingMode START");

            using (AsyncImageLoader loader = new AsyncImageLoader())
            {
                try
                {
                    loader.Load(url, new Uint16Pair(100, 80), FittingModeType.Center, SamplingModeType.Linear, false);
                }
                catch (Exception e)
                {
                    tlog.Debug(tag, e.Message.ToString());
                    Assert.Fail("Caught Exception: Failed!");
                }
            }

            tlog.Debug(tag, $"AsyncImageLoaderLoadWithFittingMode END (OK)");
        }
Ejemplo n.º 3
0
        public void AsyncImageLoaderLoad()
        {
            tlog.Debug(tag, $"AsyncImageLoaderLoad START");

            using (AsyncImageLoader loader = new AsyncImageLoader())
            {
                try
                {
                    loader.Load(url);
                }
                catch (Exception e)
                {
                    tlog.Debug(tag, e.Message.ToString());
                    Assert.Fail("Caught Exception: Failed!");
                }
            }

            tlog.Debug(tag, $"AsyncImageLoaderLoad END (OK)");
        }