public void AppCompatTestOneOff() { var r = new AppCompat(); var reg = new RegistryHive(@"C:\Users\eric\Desktop\SYSTEM"); reg.ParseHive(); var key = reg.GetKey(@"ControlSet001\Control\Session Manager\AppCompatCache"); Check.That(r.Values.Count).IsEqualTo(0); r.ProcessValues(key); Check.That(r.Values.Count).IsEqualTo(325); var ff = (ValuesOut)r.Values[0]; Check.That(ff.CacheEntryPosition).IsEqualTo(0); Check.That(ff.ProgramName).Contains("Logon"); }
public void AppCompatTestCreators() { var r = new AppCompat(); var reg = new RegistryHive(@"D:\SynologyDrive\Registry\SYSTEM_Creators"); reg.ParseHive(); var key = reg.GetKey(@"ControlSet001\Control\Session Manager\AppCompatCache"); Check.That(r.Values.Count).IsEqualTo(0); r.ProcessValues(key); Check.That(r.Values.Count).IsEqualTo(506); var ff = (ValuesOut)r.Values[0]; Check.That(ff.CacheEntryPosition).IsEqualTo(0); Check.That(ff.ProgramName).Contains("nvstreg.exe"); }
public void AppCompatTest() { var r = new AppCompat(); var reg = new RegistryHive(@"D:\Sync\RegistryHives\SYSTEM"); reg.ParseHive(); var key = reg.GetKey(@"ControlSet001\Control\Session Manager\AppCompatCache"); Check.That(r.Values.Count).IsEqualTo(0); r.ProcessValues(key); Check.That(r.Values.Count).IsEqualTo(1024); var ff = (ValuesOut)r.Values[0]; Check.That(ff.CacheEntryPosition).IsEqualTo(0); Check.That(ff.ProgramName).Contains("java"); }