mirror of
https://github.com/vknet/vk.git
synced 2026-07-18 12:23:29 +00:00
23 lines
No EOL
491 B
C#
23 lines
No EOL
491 B
C#
using AwesomeAssertions;
|
|
using VkNet.Model;
|
|
using Xunit;
|
|
|
|
namespace VkNet.Tests.Models;
|
|
|
|
public class StoryModel : BaseTest
|
|
{
|
|
[Fact(DisplayName = "Should deserialize from vk response to attachment")]
|
|
public void ShouldDeserializeFromVkResponseToAttachment()
|
|
{
|
|
ReadJsonFile("Models", "story_attachment");
|
|
|
|
Url = "https://api.vk.ru/method/wall.get";
|
|
|
|
var attachment = Api.Wall.Get(new())
|
|
.WallPosts[0]
|
|
.Attachments[0];
|
|
|
|
attachment.Instance.Should()
|
|
.BeOfType<Story>();
|
|
}
|
|
} |