private static void AssertResponseCorrect(OEmbedResponse result) { Assert.AreEqual("http://instagram.com/", result.ProviderUrl); Assert.AreEqual(72, result.AuthorId); Assert.AreEqual("5382_72", result.MediaId); Assert.AreEqual("danrubin", result.AuthorName); Assert.AreEqual("http://instagram.com/danrubin", result.AuthorUrl); Assert.AreEqual("Instagram", result.ProviderName); Assert.AreEqual("http://instagram.com/", result.ProviderUrl); Assert.AreEqual("Rays", result.Title); Assert.AreEqual("photo", result.Type); Assert.AreEqual("1.0", result.Version); }
private static void AssertResponseCorrect(OEmbedResponse result) { Assert.AreEqual("https://www.instagram.com", result.ProviderUrl); Assert.AreEqual(72, result.AuthorId); Assert.AreEqual("5382_72", result.MediaId); Assert.AreEqual("danrubin", result.AuthorName); Assert.AreEqual("https://www.instagram.com/danrubin", result.AuthorUrl); Assert.AreEqual("Instagram", result.ProviderName); Assert.AreEqual("Rays", result.Title); Assert.AreEqual("rich", result.Type); Assert.AreEqual(1.0, result.Version); Assert.IsNotNull(result.Html); }