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 Aug 7, 2023
1 parent 70e2c72 commit 05235b9
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 @@ -137,6 +137,18 @@ def test_netfx_chinese_path(example_netstandard: Path, tmpdir_factory):
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)


def run_tests(asm):
func = asm.get_function("Example.TestClass", "Test")
test_data = b"testy mctestface"
Expand Down

0 comments on commit 05235b9

Please sign in to comment.