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