Exemplo n.º 1
0
		public void PaintingHtmlReturnedProperlyTest()
		{
			var api = new MetApi();
			
			api.GetPaintingPage();

			Assert.IsTrue(api.GetPaintingHtml().IndexOf("object-information") > 0);
		}
Exemplo n.º 2
0
		public void GetRandomPaintingUrlTest()
		{
			var api = new MetApi();
			
			var url = api.GetPaintingPage();

			Assert.IsTrue(url.IndexOf("pos=") > 0);
		}
Exemplo n.º 3
0
		public void PaintingImageUrlReturnsProperlyTest()
		{
			var api = new MetApi();
			
			api.GetPaintingPage();
			var painting = api.GetPaintingInfo();

			Assert.IsTrue(painting.Url.IndexOf("web-large") > 0);
		}