Skip to content

Commit

Permalink
Add unit test for using a separate domain
Browse files Browse the repository at this point in the history
  • Loading branch information
br-sk authored and filmor committed Jan 3, 2023
1 parent be14ede commit 6b05a2c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,18 @@ def test_netfx(example_netstandard):
from clr_loader import get_netfx

netfx = get_netfx()
asm = netfx.get_assembly(example_netstandard / "example.dll")

run_tests(asm)


@pytest.mark.skipif(
sys.platform != "win32", reason=".NET Framework only exists on Windows"
)
def test_netfx_separate_domain(example_netstandard):
from clr_loader import get_netfx

netfx = get_netfx(domain="some_domain")
asm = netfx.get_assembly(os.path.join(example_netstandard, "example.dll"))

run_tests(asm)
Expand Down

0 comments on commit 6b05a2c

Please sign in to comment.