コード例 #1
0
 public void ProhibitInterfaceTypeTest()
 {
     using (var parameters = new NWParameters())
     {
         var types = new List <NWInterfaceType> ();
         parameters.ProhibitInterfaceType(NWInterfaceType.Wifi);
         parameters.IterateProhibitedInterfaces((type) => { types.Add(type); return(true); });
         Assert.True(types.Contains(NWInterfaceType.Wifi), "Type was not prohibited.");
     }
 }