namespace IT.UnitTest { public class Demo { static public string Test(string input) { return input; } } public class Tests { [Test] public void Test2() { var t1 = Type.GetType("IT.UnitTest.Demo"); var obj = Activator.CreateInstance(t1); var output = t1.GetMethod("Test").Invoke(obj, new string[] { "input" }); Assert.IsNotEmpty(output.ToString()); } } }