Exemple #1
0
        private static XDocument CreateMetaDataXmlFileAndCheckPixelSizes(XDocument lastXml,
                                                                         string metaDataFilePath)
        {
            var xml = new ContentMetaDataFileCreator(lastXml).CreateAndLoad(metaDataFilePath);

            Assert.AreEqual(5, xml.Root.Elements().Count());
            foreach (var element in xml.Root.Elements())
            {
                CheckElementPixelSize(element);
            }
            return(xml);
        }
		private static XDocument CreateMetaDataXmlFileAndCheckPixelSizes(XDocument lastXml,
			string metaDataFilePath)
		{
			var xml = new ContentMetaDataFileCreator(lastXml).CreateAndLoad(metaDataFilePath);
			Assert.AreEqual(5, xml.Root.Elements().Count());
			foreach (var element in xml.Root.Elements())
				CheckElementPixelSize(element);
			return xml;
		}
Exemple #3
0
        public void SmallImageHasNoAlphaPixels()
        {
            var image = new Bitmap(Path.Combine("Content", "SmallImage.png"));

            Assert.IsFalse(ContentMetaDataFileCreator.HasBitmapAlphaPixels(image));
        }
Exemple #4
0
        public void DefaultRadiobuttonOnHasAlphaPixels()
        {
            var image = new Bitmap(Path.Combine("Content", "DefaultRadiobuttonOn.png"));

            Assert.IsTrue(ContentMetaDataFileCreator.HasBitmapAlphaPixels(image));
        }
Exemple #5
0
        public void SimpleSubMenuBackgroundHasNoAlphaPixels()
        {
            var image = new Bitmap(Path.Combine("Content", "SimpleSubMenuBackground.png"));

            Assert.IsFalse(ContentMetaDataFileCreator.HasBitmapAlphaPixels(image));
        }
Exemple #6
0
        public void DeltaEngineLogoHasAlphaPixels()
        {
            var image = new Bitmap(Path.Combine("Content", "DeltaEngineLogo.png"));

            Assert.IsTrue(ContentMetaDataFileCreator.HasBitmapAlphaPixels(image));
        }