예제 #1
0
        public void GetImage_Returns_Null()
        {
            var project = new XProject();

            var key = XProject.ImageEntryNamePrefix + "image.jpg";

            var target = project.GetImage(key);

            Assert.Null(target);
        }
예제 #2
0
        public void GetImage_Returns_Byte_Array()
        {
            var project = new XProject();

            var key  = XProject.ImageEntryNamePrefix + "image.jpg";
            var data = new byte[] { 0x12, 0x34, 0x56, 0x78 };

            project.AddImage(key, data);

            var target = project.GetImage(key);

            Assert.Equal(data, target);
        }