public void VoidIsNotAValidTypeWhenGeneratingProxy() { //Arrange var generator = new ProxyGenerator(); //Act + Assert Expect.ArgumentOutOfRangeException(() => generator.Generate(typeof(void))); }