Beispiel #1
0
    public void TestCLSIDRegistryPull()
    {
        var comMapping = RegistryServices.GetComClsidMapping();

        //All windows systems should have more than 100 COMs registered... right???
        Assert.IsTrue(comMapping.Keys.Count() > 100);
    }
Beispiel #2
0
    public void TestCLSIDRegistryPathfind()
    {
        var comMapping = RegistryServices.GetComClsidMapping();

        var paths = RegistryServices.GetRegisteredPathsForComFile("dao360.dll", comMapping);

        Assert.IsTrue(paths.Count == 1);
        Assert.IsTrue(paths.First() == "C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\DAO\\dao360.dll");
    }