Exemplo n.º 1
0
        public void Load_Succeeds(Func <Stream> getStream)
        {
            var instance = new Splat.PlatformBitmapLoader();

            using (var sourceStream = getStream())
            {
                var result = instance.Load(
                    sourceStream,
                    640,
                    480);

                Assert.NotNull(result);
            }
        }
Exemplo n.º 2
0
        public void Load_Succeeds(Func <Stream> getStream)
        {
            if (getStream is null)
            {
                throw new ArgumentNullException(nameof(getStream));
            }

            var instance = new Splat.PlatformBitmapLoader();

            using (var sourceStream = getStream())
            {
                var result = instance.Load(
                    sourceStream,
                    640,
                    480);

                Assert.NotNull(result);
            }
        }