Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
halgab committed Jan 11, 2024
1 parent 3a798cb commit 3b59dac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ public void Ctor_String_String(string xmlNamespace, string clrNamespace)
[Fact]
public void Ctor_NullXmlNamespace_ThrowsArgumentNullException()
{
Assert.Throws<ArgumentNullException>("xmlNamespace", () => new XmlnsDefinitionAttribute(null, "clrNamespace"));
Assert.Throws<ArgumentNullException>("xmlNamespace", () => new XmlnsDefinitionAttribute(null!, "clrNamespace"));
}

[Fact]
public void Ctor_NullClrNamespace_ThrowsArgumentNullException()
{
Assert.Throws<ArgumentNullException>("clrNamespace", () => new XmlnsDefinitionAttribute("xmlNamespace", null));
Assert.Throws<ArgumentNullException>("clrNamespace", () => new XmlnsDefinitionAttribute("xmlNamespace", null!));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ public void Ctor_String_String(string xmlNamespace, string prefix)
[Fact]
public void Ctor_NullXmlNamespace_ThrowsArgumentNullException()
{
Assert.Throws<ArgumentNullException>("xmlNamespace", () => new XmlnsPrefixAttribute(null, "prefix"));
Assert.Throws<ArgumentNullException>("xmlNamespace", () => new XmlnsPrefixAttribute(null!, "prefix"));
}

[Fact]
public void Ctor_NullPrefix_ThrowsArgumentNullException()
{
Assert.Throws<ArgumentNullException>("prefix", () => new XmlnsPrefixAttribute("xmlNamespace", null));
Assert.Throws<ArgumentNullException>("prefix", () => new XmlnsPrefixAttribute("xmlNamespace", null!));
}
}

0 comments on commit 3b59dac

Please sign in to comment.