public void Test_Tile_Xml_Special_Photos_MaxImages() { TileBindingContentPhotos content = new TileBindingContentPhotos() { Images = { new TileImageSource("1.jpg"), new TileImageSource("2.jpg"), new TileImageSource("3.jpg"), new TileImageSource("4.jpg"), new TileImageSource("5.jpg"), new TileImageSource("6.jpg"), new TileImageSource("7.jpg"), new TileImageSource("8.jpg"), new TileImageSource("9.jpg"), new TileImageSource("10.jpg"), new TileImageSource("11.jpg"), new TileImageSource("12.jpg") } }; AssertBindingMedium(@"<binding template='TileMedium' hint-presentation='photos'> <image src='1.jpg'/> <image src='2.jpg'/> <image src='3.jpg'/> <image src='4.jpg'/> <image src='5.jpg'/> <image src='6.jpg'/> <image src='7.jpg'/> <image src='8.jpg'/> <image src='9.jpg'/> <image src='10.jpg'/> <image src='11.jpg'/> <image src='12.jpg'/> </binding>", new TileBinding() { Content = content }); }
public void Test_Tile_Xml_Special_Photos_OneImage() { TileBindingContentPhotos content = new TileBindingContentPhotos() { Images = { new TileImageSource("http://msn.com/1.jpg") { AddImageQuery = true, Alt = "alternate" } } }; AssertBindingMedium("<binding template='TileMedium' hint-presentation='photos'><image src='http://msn.com/1.jpg' addImageQuery='True' alt='alternate'/></binding>", new TileBinding() { Content = content }); }
public void Test_Tile_Xml_Special_Photos_TwoImages() { TileBindingContentPhotos content = new TileBindingContentPhotos() { Images = { new TileImageSource("Assets/1.jpg"), new TileImageSource("Assets/2.jpg") } }; AssertBindingMedium("<binding template='TileMedium' hint-presentation='photos'><image src='Assets/1.jpg'/><image src='Assets/2.jpg'/></binding>", new TileBinding() { Content = content }); }
public void Test_Tile_Xml_Special_Photos_Default() { TileBindingContentPhotos content = new TileBindingContentPhotos() { }; AssertBindingMedium("<binding template='TileMedium' hint-presentation='photos'/>", new TileBinding() { Content = content }); }