From 5b3a992ae8a4cc62721cc6807dc06b5dcb426850 Mon Sep 17 00:00:00 2001 From: David Hall Date: Fri, 12 Jul 2024 09:09:13 -0600 Subject: [PATCH] Updated test to cover #472 --- UnitTests/PInvoke/IpHlpApi/IpHlpApiTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UnitTests/PInvoke/IpHlpApi/IpHlpApiTests.cs b/UnitTests/PInvoke/IpHlpApi/IpHlpApiTests.cs index 916615754..00b1113ed 100644 --- a/UnitTests/PInvoke/IpHlpApi/IpHlpApiTests.cs +++ b/UnitTests/PInvoke/IpHlpApi/IpHlpApiTests.cs @@ -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)));