Skip to content

Commit

Permalink
Updated test to cover #472
Browse files Browse the repository at this point in the history
  • Loading branch information
dahall committed Jul 12, 2024
1 parent 4db14f2 commit 5b3a992
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UnitTests/PInvoke/IpHlpApi/IpHlpApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ public void GetAdapterOrderMapTest()
}

[Test]
public void GetAdaptersAddressesTest() => Assert.That(() =>
public void GetAdaptersAddressesTest([Values] GetAdaptersAddressesFlags f) => Assert.That(() =>
{
foreach (IP_ADAPTER_ADDRESSES addrs in GetAdaptersAddresses(GetAdaptersAddressesFlags.GAA_FLAG_INCLUDE_PREFIX, ADDRESS_FAMILY.AF_UNSPEC))
foreach (IP_ADAPTER_ADDRESSES addrs in GetAdaptersAddresses(f, ADDRESS_FAMILY.AF_UNSPEC))
{
TestContext.WriteLine($"{addrs.IfIndex}) {addrs.AdapterName} ({addrs.FriendlyName});{addrs.Description};MAC:{PhysicalAddressToString(addrs.PhysicalAddress)}");
TestContext.WriteLine(" Uni:" + string.Join(";", addrs.UnicastAddresses.Select(a => a.Address)));
Expand Down

0 comments on commit 5b3a992

Please sign in to comment.