Esempio n. 1
0
		public void TestREGWriteVisitor_HKCU_x86()
		{
			UIOptionRootType optionsRoot = TestHelper.ReadTestXML();

			using (Reg.REGVisitor regVisitor = new Reg.REGVisitor(_regOutputPathHKCU86))
			{
				optionsRoot.Accept(regVisitor);

				Assert.IsTrue(System.IO.File.Exists(_regOutputPathHKCU86));

				FileInfo original = new FileInfo(_regOriginalPathHKCU86);
				FileInfo generated = new FileInfo(_regOutputPathHKCU86);

				Assert.AreEqual(original.Length, generated.Length);
			}
		}
Esempio n. 2
0
		public void TestREGWriteVisitor_Both_x64()
		{
			UIOptionRootType optionsRoot = TestHelper.ReadTestXML();

			using (Reg.REGVisitor regVisitor = new Reg.REGVisitor(_regOutputPathBoth64, OSPlatformEnum.x64, RegistryTargetEnum.Both))
			{
				optionsRoot.Accept(regVisitor);

				Assert.IsTrue(System.IO.File.Exists(_regOutputPathBoth64));

				FileInfo original = new FileInfo(_regOriginalPathBoth64);
				FileInfo generated = new FileInfo(_regOutputPathBoth64);

				Assert.AreEqual(original.Length, generated.Length);
			}
		}