Beispiel #1
0
        public void YandexAdCreated_HasYandexAdNetworkType()
        {
            // Act
            YandexAd result = new YandexAd("123", "1234");

            // Assert
            result.Type.Should().BeEquivalentTo(AdNetworkTypes.Yandex);
        }
Beispiel #2
0
        public void ToXElement_ReturnsNotNull(string id, string turboAdId)
        {
            // Act
            XElement result = new YandexAd(id, turboAdId).ToXElement();

            // Assert
            result.Should().NotBeNull();
            result.Should().HaveAttribute("type", AdNetworkTypes.Yandex);
            result.Name.NamespaceName.Should().BeEquivalentTo(Namespaces.TurboYandex);
            result.Should().HaveAttribute("turbo-ad-id", turboAdId);
            result.Should().HaveAttribute("id", id);
        }