Fix a build break in k10

Someone added ifdefs for net45 + Moq but didn't include this test