public void Test_isInstalledByID()
        {
            telemetry_update_removal.InstalledUpdatesHistory instUpd = new telemetry_update_removal.InstalledUpdatesHistory();

            //There is no empty ID, so there should be no installed update for that.
            Assert.IsFalse(instUpd.isInstalledByID(""));

            /* The following KB IDs are part of MS15-097, a security update of
             * the September 2015 patchday, so it should usually be installed
             * on up-to-date systems.
             *
             * - KB3087135 is for Windows Vista and Windows Server 2008.
             * - KB3087039 is for Windows 7, Windows 8, Windows Server 2008 R2
             *   and Windows Server 2012.
             * - KB3081455 should do the same for Windows 10.
             */

            string ID_3087135 = instUpd.getInstalledIDByKB(3087135);
            string ID_3087039 = instUpd.getInstalledIDByKB(3087039);
            string ID_3081455 = instUpd.getInstalledIDByKB(3081455);

            //One of the IDs should not be null.
            Assert.IsTrue(ID_3081455 != null || ID_3087039 != null || ID_3087135 != null);

            //... and one of the updates should be installed.
            Assert.IsTrue(instUpd.isInstalledByID(ID_3087135)
                || instUpd.isInstalledByID(ID_3087039)
                || instUpd.isInstalledByID(ID_3081455));
            instUpd = null;
        }
        public void Test_isInstalledByKBNumber()
        {
            telemetry_update_removal.InstalledUpdatesHistory instUpd = new telemetry_update_removal.InstalledUpdatesHistory();

            //There is no KB ID zero, so there should be no installed update for that.
            Assert.IsFalse(instUpd.isInstalledByKBNumber(0));

            //There is no KB ID 308, so there should be no installed update for that.
            Assert.IsFalse(instUpd.isInstalledByKBNumber(308));

            /* The following KB IDs are part of MS15-097, a security update of
             * the September 2015 patchday, so it should usually be installed
             * on up-to-date systems.
             *
             * - KB3087135 is for Windows Vista and Windows Server 2008.
             * - KB3087039 is for Windows 7, Windows 8, Windows Server 2008 R2
             *   and Windows Server 2012.
             * - KB3081455 should do the same for Windows 10.
             */
            Assert.IsTrue(instUpd.isInstalledByKBNumber(3087135)
                || instUpd.isInstalledByKBNumber(3087039)
                || instUpd.isInstalledByKBNumber(3081455));
            instUpd = null;
        }