public void AutoStartTest() { string location = System.Reflection.Assembly.GetExecutingAssembly().Location; AutoStart.SetAutoStart(location); Assert.IsTrue(AutoStart.IsAutoStartEnabled(location)); AutoStart.UnSetAutoStart(location); Assert.IsFalse(AutoStart.IsAutoStartEnabled(location)); }