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; }
public void SmallImageHasNoAlphaPixels() { var image = new Bitmap(Path.Combine("Content", "SmallImage.png")); Assert.IsFalse(ContentMetaDataFileCreator.HasBitmapAlphaPixels(image)); }
public void DefaultRadiobuttonOnHasAlphaPixels() { var image = new Bitmap(Path.Combine("Content", "DefaultRadiobuttonOn.png")); Assert.IsTrue(ContentMetaDataFileCreator.HasBitmapAlphaPixels(image)); }
public void SimpleSubMenuBackgroundHasNoAlphaPixels() { var image = new Bitmap(Path.Combine("Content", "SimpleSubMenuBackground.png")); Assert.IsFalse(ContentMetaDataFileCreator.HasBitmapAlphaPixels(image)); }
public void DeltaEngineLogoHasAlphaPixels() { var image = new Bitmap(Path.Combine("Content", "DeltaEngineLogo.png")); Assert.IsTrue(ContentMetaDataFileCreator.HasBitmapAlphaPixels(image)); }