Exemple #1
0
        public void AdFoxCreated_HasAdFoxNetworkType()
        {
            // Act
            AdFox result = new AdFox(string.Empty, string.Empty);

            // Assert
            result.Type.Should().BeEquivalentTo(AdNetworkTypes.AdFox);
        }
Exemple #2
0
        public void ToXElement_ReturnsNotNull(string turboAdId, string adScript)
        {
            // Act
            XElement result = new AdFox(turboAdId, adScript).ToXElement();

            // Assert
            result.Should().NotBeNull();
            result.Should().HaveAttribute("type", AdNetworkTypes.AdFox);
            result.Name.NamespaceName.Should().BeEquivalentTo(Namespaces.TurboYandex);
            result.Should().HaveAttribute("turbo-ad-id", turboAdId);
            result.FirstNode.NodeType.Should().BeEquivalentTo(XmlNodeType.CDATA);
            result.Should().HaveValue(adScript);
        }