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

            var testingTarget = new NativeImageSource(100, 50, NativeImageSource.ColorDepth.Default);

            Assert.IsNotNull(testingTarget, "Should be not null!");
            Assert.IsInstanceOf <NativeImageSource>(testingTarget, "Should be an Instance of NativeImageSource!");

            var width = testingTarget.GetWidth();

            Assert.AreEqual(100, width, "should be equal!");
            var height = testingTarget.GetHeight();

            Assert.AreEqual(50, height, "should be equal!");

            testingTarget.Dispose();
            tlog.Debug(tag, $"NativeImageInterfaceGetWidth END (OK)");
        }