Assignment to namespace variable results in INVALID WRITE I’m writing a unit test for a class MyClass with the following (mock) implementation.