public void TestUpdateCreative() { ImageCreative imageCreative = (ImageCreative)creative1; imageCreative.destinationUrl = "http://news.google.com"; Creative newCreative = null; Assert.DoesNotThrow(delegate() { newCreative = creativeService.updateCreative(creative1); }); Assert.NotNull(newCreative); Assert.AreEqual(newCreative.id, creative1.id); Assert.AreEqual(newCreative.name, creative1.name); Assert.AreEqual(newCreative.advertiserId, creative1.advertiserId); Assert.AreEqual(newCreative.size.height, creative1.size.height); Assert.AreEqual(newCreative.size.width, creative1.size.width); Assert.That(newCreative is ImageCreative); Assert.AreEqual((newCreative as ImageCreative).destinationUrl, imageCreative.destinationUrl); }