public void BlakeKnownNetworks() { var r = new KnownNetworks(); var reg = new RegistryHive(@"D:\SynologyDrive\Registry\SOFTWARE_dblake"); reg.ParseHive(); var key = reg.GetKey(@"Microsoft\Windows NT\CurrentVersion\NetworkList"); Check.That(r.Values.Count).IsEqualTo(0); r.ProcessValues(key); Check.That(r.Values.Count).IsEqualTo(27); Check.That(r.Errors.Count).IsEqualTo(0); var ff = (KnownNetwork)r.Values[0]; Check.That(ff.NetworkName).IsEqualTo(@"gogoinflight"); Check.That(ff.DNSSuffix).IsEqualTo(@"<none>"); Check.That(ff.ProfileGUID).IsEqualTo("{167B2E5E-29EA-429E-8D43-E82043F0D3CF}"); Check.That(ff.FirstConnectLOCAL.Year).IsEqualTo(2013); Check.That(ff.FirstConnectLOCAL.Day).IsEqualTo(3); }
public void KnownNetwork() { var r = new KnownNetworks(); var reg = new RegistryHive(@"D:\SynologyDrive\Registry\SOFTWARE_HPSpectre_EST"); reg.ParseHive(); var key = reg.GetKey(@"Microsoft\Windows NT\CurrentVersion\NetworkList"); Check.That(r.Values.Count).IsEqualTo(0); r.ProcessValues(key); Check.That(r.Values.Count).IsEqualTo(23); }
public void KnownNetwork2() { var r = new KnownNetworks(); var reg = new RegistryHive(@"C:\Temp\Chad\SOFTWARE_clean"); reg.ParseHive(); var key = reg.GetKey(@"Microsoft\Windows NT\CurrentVersion\NetworkList"); Check.That(r.Values.Count).IsEqualTo(0); r.ProcessValues(key); Check.That(r.Values.Count).IsEqualTo(4); }