public void AdFoxCreated_HasAdFoxNetworkType() { // Act AdFox result = new AdFox(string.Empty, string.Empty); // Assert result.Type.Should().BeEquivalentTo(AdNetworkTypes.AdFox); }
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); }