diff --git a/test/SuperSocket.Tests/TestClassBase.cs b/test/SuperSocket.Tests/TestClassBase.cs index eaf9c24e4..7f3d93085 100644 --- a/test/SuperSocket.Tests/TestClassBase.cs +++ b/test/SuperSocket.Tests/TestClassBase.cs @@ -70,7 +70,7 @@ protected SuperSocketHostBuilder CreateSocketServerBuilder(Type type) { - return (T)ActivatorUtilities.CreateFactory(type, new Type[0]).Invoke(null, null); + return (T)Activator.CreateInstance(type); } protected Socket CreateClient(IHostConfigurator hostConfigurator)