[NUI] Add Images(public) TCs.
authorguowei.wang <guowei.wang@samsung.com>
Thu, 27 May 2021 09:09:31 +0000 (17:09 +0800)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 1 Jun 2021 08:03:31 +0000 (17:03 +0900)
test/Tizen.NUI.Tests/Tizen.NUI.TCT/testcase/public/Images/TSImageLoading.cs [new file with mode: 0755]
test/Tizen.NUI.Tests/Tizen.NUI.TCT/testcase/public/Images/TSNativeImageSource.cs [new file with mode: 0755]
test/Tizen.NUI.Tests/Tizen.NUI.TCT/testcase/public/Images/TSPixelBuffer.cs [new file with mode: 0755]
test/Tizen.NUI.Tests/Tizen.NUI.TCT/testcase/public/Images/TSPixelData.cs [new file with mode: 0755]

diff --git a/test/Tizen.NUI.Tests/Tizen.NUI.TCT/testcase/public/Images/TSImageLoading.cs b/test/Tizen.NUI.Tests/Tizen.NUI.TCT/testcase/public/Images/TSImageLoading.cs
new file mode 100755 (executable)
index 0000000..ccdce73
--- /dev/null
@@ -0,0 +1,417 @@
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+using System.Collections.Generic;
+using System.Threading.Tasks;
+
+namespace Tizen.NUI.Devel.Tests
+{
+    using tlog = Tizen.Log;
+
+    [TestFixture]
+    [Description("public/Common/ImageLoading")]
+    public class PublicImageLoadingTest
+    {
+        private const string tag = "NUITEST";
+        private string image_path = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "picture.png";
+        private string bmp_path = "https://image.baidu.com/search/detail?ct=503316480&z=0&ipn=d&word=bmp%E4%B8%8B%E8%BD%BD%20%E4%BD%8D%E5%9B%BE&step_word=&hs=2&pn=0&spn=0&di=30360&pi=0&rn=1&tn=baiduimagedetail&is=0%2C0&istype=2&ie=utf-8&oe=utf-8&in=&cl=2&lm=-1&st=-1&cs=506847219%2C2820013657&os=4205693751%2C1065126395&simid=0%2C0&adpicid=0&lpn=0&ln=389&fr=&fmq=1389861203899_R&fm=&ic=0&s=undefined&hd=undefined&latest=undefined&copyright=undefined&se=&sme=&tab=0&width=&height=&face=undefined&ist=&jit=&cg=&bdtype=0&oriquery=bmp%E4%B8%8B%E8%BD%BD&objurl=https%3A%2F%2Fgimg2.baidu.com%2Fimage_search%2Fsrc%3Dhttp%3A%2F%2Fbpic.ooopic.com%2F17%2F52%2F38%2F17523837-6a28a5a38920964a54ed89d8e93c3a3c-0.jpg%26refer%3Dhttp%3A%2F%2Fbpic.ooopic.com%26app%3D2002%26size%3Df9999%2C10000%26q%3Da80%26n%3D0%26g%3D0n%26fmt%3Djpeg%3Fsec%3D1624445232%26t%3Db9e3c91e4753f12d81e73c7142181326&fromurl=ippr_z2C%24qAzdH3FAzdH3Fooo_z%26e3B555rtv_z%26e3Bv54AzdH3Ffij3ty7wgf7AzdH3F80cdnbn0_z%26e3Bip4s&gsm=1&rpstart=0&rpnum=0&islist=&querylist=&force=undefined";
+        private string file_name = "picture";
+
+        [SetUp]
+        public void Init()
+        {
+            tlog.Info(tag, "Init() is called!");
+        }
+
+        [TearDown]
+        public void Destroy()
+        {
+            tlog.Info(tag, "Destroy() is called!");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("ImageLoading LoadImageFromFile.")]
+        [Property("SPEC", "Tizen.NUI.ImageLoading.LoadImageFromFile M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void ImageLoadingLoadImageFromFile()
+        {
+            tlog.Debug(tag, $"ImageLoadingLoadImageFromFile START");
+
+            var testingTarget = ImageLoading.LoadImageFromFile(image_path);
+            Assert.IsNotNull(testingTarget, "Can't create success object PixelBuffer.");
+            Assert.IsInstanceOf<PixelBuffer>(testingTarget, "Should return PixelBuffer instance.");
+
+            testingTarget.Dispose();
+            tlog.Debug(tag, $"ImageLoadingLoadImageFromFile END (OK)");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("ImageLoading LoadImageFromFile. With Size.")]
+        [Property("SPEC", "Tizen.NUI.ImageLoading.LoadImageFromFile M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void ImageLoadingLoadImageFromFileWithSize()
+        {
+            tlog.Debug(tag, $"ImageLoadingLoadImageFromFileWithSize START");
+
+            using (Size2D size2d = new Size2D(NUIApplication.GetDefaultWindow().WindowSize.Width, NUIApplication.GetDefaultWindow().WindowSize.Height))
+            {
+                var testingTarget = ImageLoading.LoadImageFromFile(image_path, size2d);
+                Assert.IsNotNull(testingTarget, "Can't create success object PixelBuffer.");
+                Assert.IsInstanceOf<PixelBuffer>(testingTarget, "Should return PixelBuffer instance.");
+
+                testingTarget.Dispose();
+            }
+
+            // size is null
+            try
+            {
+                var testingTarget = ImageLoading.LoadImageFromFile(image_path, null);
+            }
+            catch (ArgumentNullException e)
+            {
+                Assert.Pass("Catch ArgumentNullException, Pass!");
+            }
+
+            tlog.Debug(tag, $"ImageLoadingLoadImageFromFileWithSize END (OK)");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("ImageLoading LoadImageFromFile. With FittingModeType.")]
+        [Property("SPEC", "Tizen.NUI.ImageLoading.LoadImageFromFile M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void ImageLoadingLoadImageFromFileWithFittingMode()
+        {
+            tlog.Debug(tag, $"ImageLoadingLoadImageFromFileWithFittingMode START");
+
+            using (Size2D size2d = new Size2D(NUIApplication.GetDefaultWindow().WindowSize.Width, NUIApplication.GetDefaultWindow().WindowSize.Height))
+            {
+                var testingTarget = ImageLoading.LoadImageFromFile(image_path, size2d, FittingModeType.ScaleToFill);
+                Assert.IsNotNull(testingTarget, "Can't create success object PixelBuffer.");
+                Assert.IsInstanceOf<PixelBuffer>(testingTarget, "Should return PixelBuffer instance.");
+
+                testingTarget.Dispose();
+            }
+
+            // size is null
+            try
+            {
+                var testingTarget = ImageLoading.LoadImageFromFile(image_path, null, FittingModeType.ScaleToFill);
+            }
+            catch (ArgumentNullException e)
+            {
+                Assert.Pass("Catch ArgumentNullException, Pass!");
+            }
+
+            tlog.Debug(tag, $"ImageLoadingLoadImageFromFileWithFittingMode END (OK)");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("ImageLoading LoadImageFromFile. With SamplingModeType.")]
+        [Property("SPEC", "Tizen.NUI.ImageLoading.LoadImageFromFile M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void ImageLoadingLoadImageFromFileWithSamplingMode()
+        {
+            tlog.Debug(tag, $"ImageLoadingLoadImageFromFileWithSamplingMode START");
+
+            using (Size2D size2d = new Size2D(NUIApplication.GetDefaultWindow().WindowSize.Width, NUIApplication.GetDefaultWindow().WindowSize.Height))
+            {
+                var testingTarget = ImageLoading.LoadImageFromFile(image_path, size2d, FittingModeType.ScaleToFill, SamplingModeType.Linear);
+                Assert.IsNotNull(testingTarget, "Can't create success object PixelBuffer.");
+                Assert.IsInstanceOf<PixelBuffer>(testingTarget, "Should return PixelBuffer instance.");
+
+                testingTarget.Dispose();
+            }
+
+            // size is null
+            try
+            {
+                var testingTarget = ImageLoading.LoadImageFromFile(image_path, null, FittingModeType.ScaleToFill, SamplingModeType.Linear);
+            }
+            catch (ArgumentNullException e)
+            {
+                Assert.Pass("Catch ArgumentNullException, Pass!");
+            }
+
+            tlog.Debug(tag, $"ImageLoadingLoadImageFromFileWithSamplingMode END (OK)");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("ImageLoading LoadImageFromFile. With orientationCorrection.")]
+        [Property("SPEC", "Tizen.NUI.ImageLoading.LoadImageFromFile M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void ImageLoadingLoadImageFromFileWithOrientationCorrection()
+        {
+            tlog.Debug(tag, $"ImageLoadingLoadImageFromFileWithOrientationCorrection START");
+
+            using (Size2D size2d = new Size2D(NUIApplication.GetDefaultWindow().WindowSize.Width, NUIApplication.GetDefaultWindow().WindowSize.Height))
+            {
+                var testingTarget = ImageLoading.LoadImageFromFile(image_path, size2d, FittingModeType.ScaleToFill, SamplingModeType.Linear, true);
+                Assert.IsNotNull(testingTarget, "Can't create success object PixelBuffer.");
+                Assert.IsInstanceOf<PixelBuffer>(testingTarget, "Should return PixelBuffer instance.");
+
+                testingTarget.Dispose();
+            }
+
+            tlog.Debug(tag, $"ImageLoadingLoadImageFromFileWithOrientationCorrection END (OK)");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("ImageLoading GetClosestImageSize.")]
+        [Property("SPEC", "Tizen.NUI.ImageLoading.GetClosestImageSize M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void ImageLoadingGetClosestImageSize()
+        {
+            tlog.Debug(tag, $"ImageLoadingGetClosestImageSize START");
+
+            var testingTarget = ImageLoading.GetClosestImageSize(file_name);
+            Assert.IsNotNull(testingTarget, "Can't create success object Size2D.");
+            Assert.IsInstanceOf<Size2D>(testingTarget, "Should return Size2D instance.");
+
+            testingTarget.Dispose();
+            tlog.Debug(tag, $"ImageLoadingGetClosestImageSize END (OK)");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("ImageLoading GetClosestImageSize. With Size.")]
+        [Property("SPEC", "Tizen.NUI.ImageLoading.GetClosestImageSize M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void ImageLoadingGetClosestImageSizeWithSize()
+        {
+            tlog.Debug(tag, $"ImageLoadingGetClosestImageSizeWithSize START");
+
+            using (Size2D size2d = new Size2D(NUIApplication.GetDefaultWindow().WindowSize.Width, NUIApplication.GetDefaultWindow().WindowSize.Height))
+            {
+                var testingTarget = ImageLoading.GetClosestImageSize(file_name, size2d);
+                Assert.IsNotNull(testingTarget, "Can't create success object Size2D.");
+                Assert.IsInstanceOf<Size2D>(testingTarget, "Should return Size2D instance.");
+
+                testingTarget.Dispose();
+            }
+
+            tlog.Debug(tag, $"ImageLoadingGetClosestImageSizeWithSize END (OK)");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("ImageLoading GetClosestImageSize. With FittingModeType.")]
+        [Property("SPEC", "Tizen.NUI.ImageLoading.GetClosestImageSize M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void ImageLoadingGetClosestImageSizeWithFittingMode()
+        {
+            tlog.Debug(tag, $"ImageLoadingGetClosestImageSizeWithFittingMode START");
+
+            using (Size2D size2d = new Size2D(NUIApplication.GetDefaultWindow().WindowSize.Width, NUIApplication.GetDefaultWindow().WindowSize.Height))
+            {
+                var testingTarget = ImageLoading.GetClosestImageSize(file_name, size2d, FittingModeType.ShrinkToFit);
+                Assert.IsNotNull(testingTarget, "Can't create success object Size2D.");
+                Assert.IsInstanceOf<Size2D>(testingTarget, "Should return Size2D instance.");
+
+                testingTarget.Dispose();
+            }
+
+            tlog.Debug(tag, $"ImageLoadingGetClosestImageSizeWithFittingMode END (OK)");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("ImageLoading GetClosestImageSize. With SamplingModeType.")]
+        [Property("SPEC", "Tizen.NUI.ImageLoading.GetClosestImageSize M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void ImageLoadingGetClosestImageSizeWithSamplingMode()
+        {
+            tlog.Debug(tag, $"ImageLoadingGetClosestImageSizeWithSamplingMode START");
+
+            using (Size2D size2d = new Size2D(NUIApplication.GetDefaultWindow().WindowSize.Width, NUIApplication.GetDefaultWindow().WindowSize.Height))
+            {
+                var testingTarget = ImageLoading.GetClosestImageSize(file_name, size2d, FittingModeType.ShrinkToFit, SamplingModeType.Box);
+                Assert.IsNotNull(testingTarget, "Can't create success object Size2D.");
+                Assert.IsInstanceOf<Size2D>(testingTarget, "Should return Size2D instance.");
+
+                testingTarget.Dispose();
+            }
+
+            tlog.Debug(tag, $"ImageLoadingGetClosestImageSizeWithSamplingMode END (OK)");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("ImageLoading GetClosestImageSize. With orientationCorrection.")]
+        [Property("SPEC", "Tizen.NUI.ImageLoading.GetClosestImageSize M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void ImageLoadingGetClosestImageSizeWithOrientationCorrection()
+        {
+            tlog.Debug(tag, $"ImageLoadingGetClosestImageSizeWithOrientationCorrection START");
+
+            using (Size2D size2d = new Size2D(NUIApplication.GetDefaultWindow().WindowSize.Width, NUIApplication.GetDefaultWindow().WindowSize.Height))
+            {
+                var testingTarget = ImageLoading.GetClosestImageSize(file_name, size2d, FittingModeType.ShrinkToFit, SamplingModeType.Box, true);
+                Assert.IsNotNull(testingTarget, "Can't create success object Size2D.");
+                Assert.IsInstanceOf<Size2D>(testingTarget, "Should return Size2D instance.");
+
+                testingTarget.Dispose();
+            }
+
+            tlog.Debug(tag, $"ImageLoadingGetClosestImageSizeWithOrientationCorrection END (OK)");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("ImageLoading GetOriginalImageSize.")]
+        [Property("SPEC", "Tizen.NUI.ImageLoading.GetOriginalImageSize M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void ImageLoadingGetOriginalImageSize()
+        {
+            tlog.Debug(tag, $"ImageLoadingGetOriginalImageSize START");
+
+            var testingTarget = ImageLoading.GetOriginalImageSize(file_name, true);
+            Assert.IsNotNull(testingTarget, "Can't create success object Size2D.");
+            Assert.IsInstanceOf<Size2D>(testingTarget, "Should return Size2D instance.");
+
+            testingTarget.Dispose();
+            tlog.Debug(tag, $"ImageLoadingGetOriginalImageSize END (OK)");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("ImageLoading DownloadImageSynchronously.")]
+        [Property("SPEC", "Tizen.NUI.ImageLoading.DownloadImageSynchronously M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void ImageLoadingDownloadImageSynchronously()
+        {
+            tlog.Debug(tag, $"ImageLoadingDownloadImageSynchronously START");
+
+
+            var testingTarget = ImageLoading.DownloadImageSynchronously(bmp_path);
+            Assert.IsNotNull(testingTarget, "Can't create success object PixelBuffer.");
+            Assert.IsInstanceOf<PixelBuffer>(testingTarget, "Should return PixelBuffer instance.");
+
+            testingTarget.Dispose();
+            tlog.Debug(tag, $"ImageLoadingDownloadImageSynchronously END (OK)");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("ImageLoading DownloadImageSynchronously. With Size.")]
+        [Property("SPEC", "Tizen.NUI.ImageLoading.DownloadImageSynchronously M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void ImageLoadingDownloadImageSynchronouslyWithSize()
+        {
+            tlog.Debug(tag, $"ImageLoadingDownloadImageSynchronouslyWithSize START");
+
+            using (Size2D size2d = new Size2D(NUIApplication.GetDefaultWindow().WindowSize.Width, NUIApplication.GetDefaultWindow().WindowSize.Height))
+            {
+                var testingTarget = ImageLoading.DownloadImageSynchronously(bmp_path, size2d);
+                Assert.IsNotNull(testingTarget, "Can't create success object PixelBuffer.");
+                Assert.IsInstanceOf<PixelBuffer>(testingTarget, "Should return PixelBuffer instance.");
+
+                testingTarget.Dispose();
+            }
+
+            tlog.Debug(tag, $"ImageLoadingDownloadImageSynchronouslyWithSize END (OK)");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("ImageLoading DownloadImageSynchronously. With FittingModeType.")]
+        [Property("SPEC", "Tizen.NUI.ImageLoading.DownloadImageSynchronously M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void ImageLoadingDownloadImageSynchronouslyWithFittingMode()
+        {
+            tlog.Debug(tag, $"ImageLoadingDownloadImageSynchronouslyWithFittingMode START");
+
+            using (Size2D size2d = new Size2D(NUIApplication.GetDefaultWindow().WindowSize.Width, NUIApplication.GetDefaultWindow().WindowSize.Height))
+            {
+                var testingTarget = ImageLoading.DownloadImageSynchronously(bmp_path, size2d, FittingModeType.FitHeight);
+                Assert.IsNotNull(testingTarget, "Can't create success object PixelBuffer.");
+                Assert.IsInstanceOf<PixelBuffer>(testingTarget, "Should return PixelBuffer instance.");
+
+                testingTarget.Dispose();
+            }
+
+            tlog.Debug(tag, $"ImageLoadingDownloadImageSynchronouslyWithFittingMode END (OK)");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("ImageLoading DownloadImageSynchronously. With SamplingModeType.")]
+        [Property("SPEC", "Tizen.NUI.ImageLoading.DownloadImageSynchronously M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void ImageLoadingDownloadImageSynchronouslyWithSamplingMode()
+        {
+            tlog.Debug(tag, $"ImageLoadingDownloadImageSynchronouslyWithSamplingMode START");
+
+            using (Size2D size2d = new Size2D(NUIApplication.GetDefaultWindow().WindowSize.Width, NUIApplication.GetDefaultWindow().WindowSize.Height))
+            {
+                var testingTarget = ImageLoading.DownloadImageSynchronously(bmp_path, size2d, FittingModeType.FitWidth, SamplingModeType.Nearest);
+                Assert.IsNotNull(testingTarget, "Can't create success object PixelBuffer.");
+                Assert.IsInstanceOf<PixelBuffer>(testingTarget, "Should return PixelBuffer instance.");
+
+                testingTarget.Dispose();
+            }
+
+            tlog.Debug(tag, $"ImageLoadingDownloadImageSynchronouslyWithSamplingMode END (OK)");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("ImageLoading DownloadImageSynchronously. With orientationCorrection.")]
+        [Property("SPEC", "Tizen.NUI.ImageLoading.DownloadImageSynchronously M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void ImageLoadingDownloadImageSynchronouslyWithOrientationCorrection()
+        {
+            tlog.Debug(tag, $"ImageLoadingDownloadImageSynchronouslyWithOrientationCorrection START");
+
+            using (Size2D size2d = new Size2D(NUIApplication.GetDefaultWindow().WindowSize.Width, NUIApplication.GetDefaultWindow().WindowSize.Height))
+            {
+                var testingTarget = ImageLoading.DownloadImageSynchronously(bmp_path, size2d, FittingModeType.Center, SamplingModeType.DontCare, true);
+                Assert.IsNotNull(testingTarget, "Can't create success object PixelBuffer.");
+                Assert.IsInstanceOf<PixelBuffer>(testingTarget, "Should return PixelBuffer instance.");
+
+                testingTarget.Dispose();
+            }
+
+            tlog.Debug(tag, $"ImageLoadingDownloadImageSynchronouslyWithOrientationCorrection END (OK)");
+        }
+    }
+}
diff --git a/test/Tizen.NUI.Tests/Tizen.NUI.TCT/testcase/public/Images/TSNativeImageSource.cs b/test/Tizen.NUI.Tests/Tizen.NUI.TCT/testcase/public/Images/TSNativeImageSource.cs
new file mode 100755 (executable)
index 0000000..0f01b21
--- /dev/null
@@ -0,0 +1,123 @@
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+using System.Collections.Generic;
+using System.Threading.Tasks;
+
+namespace Tizen.NUI.Devel.Tests
+{
+    using tlog = Tizen.Log;
+
+    [TestFixture]
+    [Description("public/Common/NativeImageSource")]
+    public class PublicNativeImageSourceTest
+    {
+        private const string tag = "NUITEST";
+
+        [SetUp]
+        public void Init()
+        {
+            tlog.Info(tag, "Init() is called!");
+        }
+
+        [TearDown]
+        public void Destroy()
+        {
+            tlog.Info(tag, "Destroy() is called!");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("NativeImageSource constructor.")]
+        [Property("SPEC", "Tizen.NUI.NativeImageSource.NativeImageSource C")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "CONSTR")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void NativeImageSourceConstructor()
+        {
+            tlog.Debug(tag, $"NativeImageSourceConstructor START");
+
+            var testingTarget = new NativeImageSource(100, 50, NativeImageSource.ColorDepth.Bits16);
+            Assert.IsNotNull(testingTarget, "Can't create success object NativeImageSource");
+            Assert.IsInstanceOf<NativeImageSource>(testingTarget, "Should be an instance of NativeImageSource type.");
+
+            testingTarget.Dispose();
+            tlog.Debug(tag, $"NativeImageSourceConstructor END (OK)");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("NativeImageSource Url.")]
+        [Property("SPEC", "Tizen.NUI.NativeImageSource.Url A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PRW")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void NativeImageSourceUrl()
+        {
+            tlog.Debug(tag, $"NativeImageSourceUrl START");
+
+            var testingTarget = new NativeImageSource(100, 50, NativeImageSource.ColorDepth.Bits16);
+            Assert.IsNotNull(testingTarget, "Can't create success object NativeImageSource");
+            Assert.IsInstanceOf<NativeImageSource>(testingTarget, "Should be an instance of NativeImageSource type.");
+
+            var result = testingTarget.Url;
+            Assert.IsNotNull(result);
+
+            testingTarget.Dispose();
+            tlog.Debug(tag, $"NativeImageSourceUrl END (OK)");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("NativeImageSource AcquireBuffer.")]
+        [Property("SPEC", "Tizen.NUI.NativeImageSource.AcquireBuffer M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void NativeImageSourceAcquireBuffer()
+        {
+            tlog.Debug(tag, $"NativeImageSourceAcquireBuffer START");
+
+            var testingTarget = new NativeImageSource(100, 50, NativeImageSource.ColorDepth.Bits16);
+            Assert.IsNotNull(testingTarget, "Can't create success object NativeImageSource");
+            Assert.IsInstanceOf<NativeImageSource>(testingTarget, "Should be an instance of NativeImageSource type.");
+
+            int width = 0, height = 0, stride = 0;
+            try
+            {
+                testingTarget.AcquireBuffer(ref width, ref height, ref stride);
+            }
+            catch (Exception e)
+            {
+                Assert.Fail("Failed!");
+            }
+
+            testingTarget.Dispose();
+            tlog.Debug(tag, $"NativeImageSourceAcquireBuffer END (OK)");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("NativeImageSource ReleaseBuffer.")]
+        [Property("SPEC", "Tizen.NUI.NativeImageSource.ReleaseBuffer M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void NativeImageSourceReleaseBuffer()
+        {
+            tlog.Debug(tag, $"NativeImageSourceReleaseBuffer START");
+
+            var testingTarget = new NativeImageSource(100, 50, NativeImageSource.ColorDepth.Bits16);
+            Assert.IsNotNull(testingTarget, "Can't create success object NativeImageSource");
+            Assert.IsInstanceOf<NativeImageSource>(testingTarget, "Should be an instance of NativeImageSource type.");
+
+            var result = testingTarget.ReleaseBuffer();
+            Assert.IsTrue(result);
+
+            testingTarget.Dispose();
+            tlog.Debug(tag, $"NativeImageSourceReleaseBuffer END (OK)");
+        }
+    }
+}
diff --git a/test/Tizen.NUI.Tests/Tizen.NUI.TCT/testcase/public/Images/TSPixelBuffer.cs b/test/Tizen.NUI.Tests/Tizen.NUI.TCT/testcase/public/Images/TSPixelBuffer.cs
new file mode 100755 (executable)
index 0000000..39f68f0
--- /dev/null
@@ -0,0 +1,455 @@
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+using System.Collections.Generic;
+using System.Threading.Tasks;
+
+namespace Tizen.NUI.Devel.Tests
+{
+    using tlog = Tizen.Log;
+
+    [TestFixture]
+    [Description("public/Common/PixelBuffer")]
+    public class PublicPixelBufferTest
+    {
+        private const string tag = "NUITEST";
+
+        [SetUp]
+        public void Init()
+        {
+            tlog.Info(tag, "Init() is called!");
+        }
+
+        [TearDown]
+        public void Destroy()
+        {
+            tlog.Info(tag, "Destroy() is called!");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("PixelBuffer constructor.")]
+        [Property("SPEC", "Tizen.NUI.PixelBuffer.PixelBuffer C")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "CONSTR")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void PixelBufferConstructor()
+        {
+            tlog.Debug(tag, $"PixelBufferConstructor START");
+
+            var testingTarget = new PixelBuffer(100, 50, PixelFormat.L8);
+            Assert.IsNotNull(testingTarget, "Can't create success object PixelBuffer");
+            Assert.IsInstanceOf<PixelBuffer>(testingTarget, "Should be an instance of PixelBuffer type.");
+
+            testingTarget.Dispose();
+            tlog.Debug(tag, $"PixelBufferConstructor END (OK)");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("PixelBuffer constructor. By PixelBuffer.")]
+        [Property("SPEC", "Tizen.NUI.PixelBuffer.PixelBuffer C")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "CONSTR")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void PixelBufferConstructorByPixelBuffer()
+        {
+            tlog.Debug(tag, $"PixelBufferConstructorByPixelBuffer START");
+
+            using (PixelBuffer pixelBuffer = new PixelBuffer(100, 50, PixelFormat.L8))
+            {
+                var testingTarget = new PixelBuffer(pixelBuffer);
+                Assert.IsNotNull(testingTarget, "Can't create success object PixelBuffer");
+                Assert.IsInstanceOf<PixelBuffer>(testingTarget, "Should be an instance of PixelBuffer type.");
+
+                testingTarget.Dispose();
+            }
+            
+            tlog.Debug(tag, $"PixelBufferConstructorByPixelBuffer END (OK)");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("PixelBuffer constructor. By IntPtr.")]
+        [Property("SPEC", "Tizen.NUI.PixelBuffer.PixelBuffer C")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "CONSTR")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void PixelBufferConstructorByIntPtr()
+        {
+            tlog.Debug(tag, $"PixelBufferConstructorByIntPtr START");
+
+            using (PixelBuffer pixelBuffer = new PixelBuffer(100, 50, PixelFormat.BGR8888))
+            {
+                var testingTarget = new PixelBuffer(PixelBuffer.getCPtr(pixelBuffer).Handle, true);
+                Assert.IsNotNull(testingTarget, "Can't create success object PixelBuffer");
+                Assert.IsInstanceOf<PixelBuffer>(testingTarget, "Should be an instance of PixelBuffer type.");
+
+                testingTarget.Dispose();
+            }
+
+            tlog.Debug(tag, $"PixelBufferConstructorByIntPtr END (OK)");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("PixelBuffer Convert.")]
+        [Property("SPEC", "Tizen.NUI.PixelBuffer.Convert M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void PixelBufferConvert()
+        {
+            tlog.Debug(tag, $"PixelBufferConvert START");
+
+            using (PixelBuffer pixelBuffer = new PixelBuffer(100, 50, PixelFormat.BGR8888))
+            {
+                var testingTarget = PixelBuffer.Convert(pixelBuffer);
+                Assert.IsNotNull(testingTarget, "Can't create success object PixelData");
+                Assert.IsInstanceOf<PixelData>(testingTarget, "Should be an instance of PixelData type.");
+
+                testingTarget.Dispose();
+            }
+
+            tlog.Debug(tag, $"PixelBufferConvert END (OK)");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("PixelBuffer CreatePixelData.")]
+        [Property("SPEC", "Tizen.NUI.PixelBuffer.CreatePixelData M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void PixelBufferCreatePixelData()
+        {
+            tlog.Debug(tag, $"PixelBufferCreatePixelData START");
+
+            using (PixelBuffer pixelBuffer = new PixelBuffer(100, 50, PixelFormat.BGR8888))
+            {
+                var testingTarget = pixelBuffer.CreatePixelData();
+                Assert.IsNotNull(testingTarget, "Can't create success object PixelData");
+                Assert.IsInstanceOf<PixelData>(testingTarget, "Should be an instance of PixelData type.");
+
+                testingTarget.Dispose();
+            }
+
+            tlog.Debug(tag, $"PixelBufferCreatePixelData END (OK)");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("PixelBuffer GetWidth.")]
+        [Property("SPEC", "Tizen.NUI.PixelBuffer.GetWidth M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void PixelBufferGetWidth()
+        {
+            tlog.Debug(tag, $"PixelBufferGetWidth START");
+
+            var testingTarget = new PixelBuffer(100, 50, PixelFormat.BGR8888);
+            Assert.IsNotNull(testingTarget, "Can't create success object PixelBuffer");
+            Assert.IsInstanceOf<PixelBuffer>(testingTarget, "Should be an instance of PixelBuffer type.");
+
+            var result = testingTarget.GetWidth();
+            Assert.AreEqual(100, result, "Should be equal!");
+
+            testingTarget.Dispose();
+            tlog.Debug(tag, $"PixelBufferGetWidth END (OK)");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("PixelBuffer GetHeight.")]
+        [Property("SPEC", "Tizen.NUI.PixelBuffer.GetHeight M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void PixelBufferGetHeight()
+        {
+            tlog.Debug(tag, $"PixelBufferGetHeight START");
+
+            var testingTarget = new PixelBuffer(100, 50, PixelFormat.BGR8888);
+            Assert.IsNotNull(testingTarget, "Can't create success object PixelBuffer");
+            Assert.IsInstanceOf<PixelBuffer>(testingTarget, "Should be an instance of PixelBuffer type.");
+
+            var result = testingTarget.GetHeight();
+            Assert.AreEqual(50, result, "Should be equal!");
+
+            testingTarget.Dispose();
+            tlog.Debug(tag, $"PixelBufferGetHeight END (OK)");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("PixelBuffer GetPixelFormat.")]
+        [Property("SPEC", "Tizen.NUI.PixelBuffer.GetPixelFormat M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void PixelBufferGetPixelFormat()
+        {
+            tlog.Debug(tag, $"PixelBufferGetPixelFormat START");
+
+            var testingTarget = new PixelBuffer(100, 50, PixelFormat.BGR8888);
+            Assert.IsNotNull(testingTarget, "Can't create success object PixelBuffer");
+            Assert.IsInstanceOf<PixelBuffer>(testingTarget, "Should be an instance of PixelBuffer type.");
+
+            var result = testingTarget.GetPixelFormat();
+            Assert.AreEqual(PixelFormat.BGR8888, result, "Should be equal!");
+
+            testingTarget.Dispose();
+            tlog.Debug(tag, $"PixelBufferGetPixelFormat END (OK)");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("PixelBuffer Assign.")]
+        [Property("SPEC", "Tizen.NUI.PixelBuffer.Assign M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void PixelBufferAssign()
+        {
+            tlog.Debug(tag, $"PixelBufferAssign START");
+
+            using (PixelBuffer pixelBuffer = new PixelBuffer(100, 50, PixelFormat.BGR8888))
+            {
+                var testingTarget = pixelBuffer.Assign(pixelBuffer);
+                Assert.IsNotNull(testingTarget, "Can't create success object PixelData");
+                Assert.IsInstanceOf<PixelBuffer>(testingTarget, "Should be an instance of PixelData type.");
+
+                var result = testingTarget.GetPixelFormat();
+                Assert.AreEqual(PixelFormat.BGR8888, result, "Should be equal!");
+
+                testingTarget.Dispose();
+            }
+
+            tlog.Debug(tag, $"PixelBufferAssign END (OK)");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("PixelBuffer GetBuffer.")]
+        [Property("SPEC", "Tizen.NUI.PixelBuffer.GetBuffer M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void PixelBufferGetBuffer()
+        {
+            tlog.Debug(tag, $"PixelBufferGetBuffer START");
+
+            var testingTarget = new PixelBuffer(100, 50, PixelFormat.BGR8888);
+            Assert.IsNotNull(testingTarget, "Can't create success object PixelData");
+            Assert.IsInstanceOf<PixelBuffer>(testingTarget, "Should be an instance of PixelData type.");
+
+            var result = testingTarget.GetBuffer();
+            Assert.IsNotNull(result);
+
+            testingTarget.Dispose();
+            tlog.Debug(tag, $"PixelBufferGetBuffer END (OK)");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("PixelBuffer Rotate.")]
+        [Property("SPEC", "Tizen.NUI.PixelBuffer.Rotate M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void PixelBufferRotate()
+        {
+            tlog.Debug(tag, $"PixelBufferRotate START");
+
+            using (Degree degree = new Degree(30))
+            {
+                var testingTarget = new PixelBuffer(100, 50, PixelFormat.BGR8888);
+                Assert.IsNotNull(testingTarget, "Can't create success object PixelData");
+                Assert.IsInstanceOf<PixelBuffer>(testingTarget, "Should be an instance of PixelData type.");
+
+                var result = testingTarget.Rotate(degree);
+                Assert.IsTrue(result);
+
+                testingTarget.Dispose();
+            }
+
+            tlog.Debug(tag, $"PixelBufferRotate END (OK)");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("PixelBuffer Resize.")]
+        [Property("SPEC", "Tizen.NUI.PixelBuffer.Resize M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void PixelBufferResize()
+        {
+            tlog.Debug(tag, $"PixelBufferResize START");
+
+            var testingTarget = new PixelBuffer(100, 50, PixelFormat.BGR8888);
+            Assert.IsNotNull(testingTarget, "Can't create success object PixelData");
+            Assert.IsInstanceOf<PixelBuffer>(testingTarget, "Should be an instance of PixelData type.");
+
+            Assert.AreEqual(100, testingTarget.GetWidth(), "Shoule be equal!");
+            Assert.AreEqual(50, testingTarget.GetHeight(), "Shoule be equal!");
+
+            testingTarget.Resize(50, 100);
+            Assert.AreEqual(50, testingTarget.GetWidth(), "Shoule be equal!");
+            Assert.AreEqual(100, testingTarget.GetHeight(), "Shoule be equal!");
+
+            testingTarget.Dispose();
+            tlog.Debug(tag, $"PixelBufferResize END (OK)");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("PixelBuffer Crop.")]
+        [Property("SPEC", "Tizen.NUI.PixelBuffer.Crop M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void PixelBufferCrop()
+        {
+            tlog.Debug(tag, $"PixelBufferCrop START");
+
+            var testingTarget = new PixelBuffer(100, 50, PixelFormat.BGR8888);
+            Assert.IsNotNull(testingTarget, "Can't create success object PixelData");
+            Assert.IsInstanceOf<PixelBuffer>(testingTarget, "Should be an instance of PixelData type.");
+
+            Assert.AreEqual(100, testingTarget.GetWidth(), "Shoule be equal!");
+            Assert.AreEqual(50, testingTarget.GetHeight(), "Shoule be equal!");
+
+            testingTarget.Crop(150, 100, 50, 100);
+            Assert.AreEqual(50, testingTarget.GetWidth(), "Shoule be equal!");
+            Assert.AreEqual(100, testingTarget.GetHeight(), "Shoule be equal!");
+
+            testingTarget.Dispose();
+            tlog.Debug(tag, $"PixelBufferCrop END (OK)");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("PixelBuffer ApplyGaussianBlur.")]
+        [Property("SPEC", "Tizen.NUI.PixelBuffer.ApplyGaussianBlur M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void PixelBufferApplyGaussianBlur()
+        {
+            tlog.Debug(tag, $"PixelBufferApplyGaussianBlur START");
+
+            var testingTarget = new PixelBuffer(100, 50, PixelFormat.BGR8888);
+            Assert.IsNotNull(testingTarget, "Can't create success object PixelData");
+            Assert.IsInstanceOf<PixelBuffer>(testingTarget, "Should be an instance of PixelData type.");
+
+            try
+            {
+                testingTarget.ApplyGaussianBlur(1.0f);
+            }
+            catch (Exception e)
+            {
+                Assert.Fail("Fail!");
+            }
+
+            testingTarget.Dispose();
+            tlog.Debug(tag, $"PixelBufferApplyGaussianBlur END (OK)");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("PixelBuffer ApplyMask.")]
+        [Property("SPEC", "Tizen.NUI.PixelBuffer.ApplyMask M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void PixelBufferApplyMask()
+        {
+            tlog.Debug(tag, $"PixelBufferApplyMask START");
+
+            var testingTarget = new PixelBuffer(100, 50, PixelFormat.BGR8888);
+            Assert.IsNotNull(testingTarget, "Can't create success object PixelData");
+            Assert.IsInstanceOf<PixelBuffer>(testingTarget, "Should be an instance of PixelData type.");
+
+            try
+            {
+                using (PixelBuffer pixelBuffer = new PixelBuffer(50, 100, PixelFormat.A8))
+                {
+                    testingTarget.ApplyMask(pixelBuffer);
+                }
+            }
+            catch (Exception e)
+            {
+                Assert.Fail("Fail!");
+            }
+
+            testingTarget.Dispose();
+            tlog.Debug(tag, $"PixelBufferApplyMask END (OK)");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("PixelBuffer ApplyMask. With scaling.")]
+        [Property("SPEC", "Tizen.NUI.PixelBuffer.ApplyMask M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void PixelBufferApplyMaskWithScaling()
+        {
+            tlog.Debug(tag, $"PixelBufferApplyMaskWithScaling START");
+
+            var testingTarget = new PixelBuffer(100, 50, PixelFormat.BGR8888);
+            Assert.IsNotNull(testingTarget, "Can't create success object PixelData");
+            Assert.IsInstanceOf<PixelBuffer>(testingTarget, "Should be an instance of PixelData type.");
+
+            try
+            {
+                using (PixelBuffer pixelBuffer = new PixelBuffer(50, 100, PixelFormat.A8))
+                {
+                    testingTarget.ApplyMask(pixelBuffer, 0.5f);
+                }
+            }
+            catch (Exception e)
+            {
+                Assert.Fail("Fail!");
+            }
+
+            testingTarget.Dispose();
+            tlog.Debug(tag, $"PixelBufferApplyMaskWithScaling END (OK)");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("PixelBuffer ApplyMask. With Whether to crop.")]
+        [Property("SPEC", "Tizen.NUI.PixelBuffer.ApplyMask M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void PixelBufferApplyMaskWithCropOrNot()
+        {
+            tlog.Debug(tag, $"PixelBufferApplyMaskWithCropOrNot START");
+
+            var testingTarget = new PixelBuffer(100, 50, PixelFormat.BGR8888);
+            Assert.IsNotNull(testingTarget, "Can't create success object PixelData");
+            Assert.IsInstanceOf<PixelBuffer>(testingTarget, "Should be an instance of PixelData type.");
+
+            try
+            {
+                using (PixelBuffer pixelBuffer = new PixelBuffer(50, 100, PixelFormat.A8))
+                {
+                    testingTarget.ApplyMask(pixelBuffer, 0.5f, true);
+                }
+            }
+            catch (Exception e)
+            {
+                Assert.Fail("Fail!");
+            }
+
+            testingTarget.Dispose();
+            tlog.Debug(tag, $"PixelBufferApplyMaskWithCropOrNot END (OK)");
+        }
+    }
+}
diff --git a/test/Tizen.NUI.Tests/Tizen.NUI.TCT/testcase/public/Images/TSPixelData.cs b/test/Tizen.NUI.Tests/Tizen.NUI.TCT/testcase/public/Images/TSPixelData.cs
new file mode 100755 (executable)
index 0000000..0fe77b4
--- /dev/null
@@ -0,0 +1,179 @@
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+using System.Collections.Generic;
+using System.Threading.Tasks;
+
+namespace Tizen.NUI.Devel.Tests
+{
+    using tlog = Tizen.Log;
+
+    [TestFixture]
+    [Description("public/Common/PixelData")]
+    public class PublicPixelDataTest
+    {
+        private const string tag = "NUITEST";
+
+        [SetUp]
+        public void Init()
+        {
+            tlog.Info(tag, "Init() is called!");
+        }
+
+        [TearDown]
+        public void Destroy()
+        {
+            tlog.Info(tag, "Destroy() is called!");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("PixelData constructor.")]
+        [Property("SPEC", "Tizen.NUI.PixelData.PixelData C")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "CONSTR")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void PixelDataConstructor()
+        {
+            tlog.Debug(tag, $"PixelDataConstructor START");
+
+            byte[] buffer = new byte[1024];
+
+            var testingTarget = new PixelData(buffer, 1024, 100, 150, PixelFormat.L8, PixelData.ReleaseFunction.Free);
+            Assert.IsNotNull(testingTarget, "Can't create success object PixelData");
+            Assert.IsInstanceOf<PixelData>(testingTarget, "Should be an instance of PixelData type.");
+
+            buffer = null;
+            testingTarget.Dispose();
+            tlog.Debug(tag, $"PixelDataConstructor END (OK)");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("PixelData constructor. By IntPtr.")]
+        [Property("SPEC", "Tizen.NUI.PixelData.PixelData C")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "CONSTR")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void PixelDataConstructorByIntPtr()
+        {
+            tlog.Debug(tag, $"PixelDataConstructorByIntPtr START");
+
+            byte[] buffer = new byte[1024];
+
+            using (PixelData pixelData = new PixelData(buffer, 1024, 100, 150, PixelFormat.L8, PixelData.ReleaseFunction.Free))
+            {
+                var testingTarget = new PixelData(PixelData.getCPtr(pixelData).Handle, true);
+                Assert.IsNotNull(testingTarget, "Can't create success object PixelData");
+                Assert.IsInstanceOf<PixelData>(testingTarget, "Should be an instance of PixelData type.");
+
+                testingTarget.Dispose();
+            }
+
+            buffer = null;
+            tlog.Debug(tag, $"PixelDataConstructorByIntPtr END (OK)");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("PixelData Url.")]
+        [Property("SPEC", "Tizen.NUI.PixelData.Url A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PRW")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void PixelDataUrl()
+        {
+            tlog.Debug(tag, $"PixelDataUrl START");
+
+            byte[] buffer = new byte[1024];
+
+            var testingTarget = new PixelData(buffer, 1024, 100, 150, PixelFormat.L8, PixelData.ReleaseFunction.Free);
+            Assert.IsNotNull(testingTarget, "Can't create success object PixelData");
+            Assert.IsInstanceOf<PixelData>(testingTarget, "Should be an instance of PixelData type.");
+
+            var result = testingTarget.Url;
+            Assert.IsNotNull(result);
+
+            buffer = null;
+            testingTarget.Dispose();
+            tlog.Debug(tag, $"PixelDataUrl END (OK)");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("PixelData GetWidth.")]
+        [Property("SPEC", "Tizen.NUI.PixelData.GetWidth M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void PixelGetWidth()
+        {
+            tlog.Debug(tag, $"PixelGetWidth START");
+
+            byte[] buffer = new byte[1024];
+
+            var testingTarget = new PixelData(buffer, 1024, 100, 150, PixelFormat.L8, PixelData.ReleaseFunction.Free);
+            Assert.IsNotNull(testingTarget, "Can't create success object PixelData");
+            Assert.IsInstanceOf<PixelData>(testingTarget, "Should be an instance of PixelData type.");
+
+            var result = testingTarget.GetWidth();
+            Assert.AreEqual(100, result, "Should be equal!");
+
+            buffer = null;
+            testingTarget.Dispose();
+            tlog.Debug(tag, $"PixelGetWidth END (OK)");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("PixelData GetHeight.")]
+        [Property("SPEC", "Tizen.NUI.PixelData.GetHeight M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void PixelGetHeight()
+        {
+            tlog.Debug(tag, $"PixelGetHeight START");
+
+            byte[] buffer = new byte[1024];
+
+            var testingTarget = new PixelData(buffer, 1024, 100, 150, PixelFormat.L8, PixelData.ReleaseFunction.Free);
+            Assert.IsNotNull(testingTarget, "Can't create success object PixelData");
+            Assert.IsInstanceOf<PixelData>(testingTarget, "Should be an instance of PixelData type.");
+
+            var result = testingTarget.GetHeight();
+            Assert.AreEqual(150, result, "Should be equal!");
+
+            buffer = null;
+            testingTarget.Dispose();
+            tlog.Debug(tag, $"PixelGetHeight END (OK)");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("PixelData GetPixelFormat.")]
+        [Property("SPEC", "Tizen.NUI.PixelData.GetPixelFormat M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void PixelGetPixelFormat()
+        {
+            tlog.Debug(tag, $"PixelGetPixelFormat START");
+
+            byte[] buffer = new byte[1024];
+
+            var testingTarget = new PixelData(buffer, 1024, 100, 150, PixelFormat.BGR8888, PixelData.ReleaseFunction.Free);
+            Assert.IsNotNull(testingTarget, "Can't create success object PixelData");
+            Assert.IsInstanceOf<PixelData>(testingTarget, "Should be an instance of PixelData type.");
+
+            var result = testingTarget.GetPixelFormat();
+            Assert.AreEqual(PixelFormat.BGR8888, result, "Should be equal!");
+
+            buffer = null;
+            testingTarget.Dispose();
+            tlog.Debug(tag, $"PixelGetPixelFormat END (OK)");
+        }
+    }
+}