Skip to content

Commit

Permalink
test: Added BlockAppAndPermitSomeNetworks test.
Browse files Browse the repository at this point in the history
  • Loading branch information
HavenDV committed Nov 5, 2023
1 parent 4fef6a2 commit b9e94cf
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/tests/H.Firewall.IntegrationTests/WfpTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,19 @@ public async Task BlockBingOnly()
await Task.Delay(TimeSpan.FromSeconds(15));
}

[TestMethod]
public async Task BlockAppAndPermitSomeNetworks()
{
using var firewall = new FirewallBuilder()
.Block()
.Application(@"C:\Users\haven\AppData\Local\Google\Chrome\Application\chrome.exe")
//.Allow()
//.RemoteSubNetwork(IPNetwork.Parse(""))
.Build();

await Task.Delay(TimeSpan.FromSeconds(15));
}

[TestMethod]
public void GetAppIdFromFileNameTest()
{
Expand Down

0 comments on commit b9e94cf

Please sign in to comment.