public void RemoveStartupTest() { StartupLink.RemoveStartup(TestApplicationPath); Assert.IsFalse(StartupLink.Exists(TestApplicationPath)); Assert.ThrowsException <ArgumentNullException>(() => StartupLink.RemoveStartup(null)); }
public void CreateStartupTest() { try { var path = StartupLink.CreateStartup(TestApplicationPath); Assert.AreEqual(GetShotcutLinkPath(), path); } finally { StartupLink.RemoveStartup(TestApplicationPath); // cleanup } Assert.ThrowsException <ArgumentNullException>(() => StartupLink.CreateStartup(null)); }
public void ExistsTest() { StartupLink.Exists(TestApplicationPath); Assert.ThrowsException <ArgumentNullException>(() => StartupLink.Exists(null)); }