Ejemplo n.º 1
0
 public virtual void FixtureSetup()
 {
     // This needs to be set for ICU
     RegistryHelper.CompanyName = "SIL";
     Icu.InitIcuDataDir();
     m_DebugProcs = new DebugProcs();
 }
Ejemplo n.º 2
0
		public virtual void FixtureSetup()
		{
			// This needs to be set for ICU
			RegistryHelper.CompanyName = "SIL";
			Icu.InitIcuDataDir();
			m_DebugProcs = new DebugProcs();
		}
Ejemplo n.º 3
0
		public void TestFixtureSetup()
		{
			// This needs to be set for ICU
			RegistryHelper.CompanyName = "SIL";
			Icu.InitIcuDataDir();
			m_wsf = new PalasoWritingSystemManager();
			m_DebugProcs = new DebugProcs();
		}
Ejemplo n.º 4
0
 public void SetUp()
 {
     m_DebugProcs = new DebugProcs();
     m_comparer   = new UCDComparer();
     m_bidi       = new BidiCharacter("0669",
                                      "ARABIC-INDIC DIGIT NINE;Nd;0;AN;;9;9;9;N;;;;;");
     m_pua = new PUACharacter("0669",
                              "ARABIC-INDIC DIGIT NINE;Nd;0;AN;;9;9;9;N;;;;;");
 }
Ejemplo n.º 5
0
		public void SetUp()
		{
			m_DebugProcs = new DebugProcs();
			m_comparer = new UCDComparer();
			m_bidi = new BidiCharacter("0669",
				"ARABIC-INDIC DIGIT NINE;Nd;0;AN;;9;9;9;N;;;;;");
			m_pua = new PUACharacter("0669",
				"ARABIC-INDIC DIGIT NINE;Nd;0;AN;;9;9;9;N;;;;;");
		}
Ejemplo n.º 6
0
		public void FixtureSetup()
		{
			m_DebugProcs = new DebugProcs();
			RegistryHelper.CompanyName = "SIL";

			Icu.InitIcuDataDir();
			m_wsManager = new PalasoWritingSystemManager();

			IWritingSystem enWs;
			m_wsManager.GetOrSet("en", out enWs);
			m_enWs = enWs.Handle;

			IWritingSystem esWs;
			m_wsManager.GetOrSet("es", out esWs);
			m_esWs = esWs.Handle;
		}
Ejemplo n.º 7
0
		public virtual void FixtureTeardown()
		{
			m_DebugProcs.Dispose();
			m_DebugProcs = null;
		}
Ejemplo n.º 8
0
 public virtual void FixtureTeardown()
 {
     m_DebugProcs.Dispose();
     m_DebugProcs = null;
 }
Ejemplo n.º 9
0
		public virtual void FixtureSetup()
		{
			m_debugProcs = new DebugProcs();
			try
			{
				Icu.InitIcuDataDir();
			}
			catch (Exception e)
			{
				Console.WriteLine(e.Message);
			}

#if __MonoCS__
			try
			{
				using (var process = System.Diagnostics.Process.GetCurrentProcess())
				{
					// try to change PTRACE option so that unmanaged call stacks show more useful
					// information. Since Ubuntu 10.10 a normal user is no longer allowed to use
					// PTRACE. This prevents call stacks and assertions from working properly.
					// However, we can set a flag on the currently running process to allow
					// it. See also the similar code in Generic/ModuleEntry.cpp
					prctl(PR_SET_PTRACER, (IntPtr)process.Id, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero);
				}
			}
			catch (Exception e)
			{
				// just ignore any errors we get
			}
#endif
		}
Ejemplo n.º 10
0
		public virtual void FixtureTeardown()
		{
			// FWC-16: we have to call CoFreeUnusedLibraries. This causes sqlnclir.dll to get
			// unloaded. If we don't do this we get a deadlock after the fixture teardown
			// because we're running STA.
			CoFreeUnusedLibraries();

			m_debugProcs.Dispose();
			m_debugProcs = null;
		}
Ejemplo n.º 11
0
 public virtual void FixtureSetup()
 {
     m_DebugProcs = new DebugProcs();
 }
Ejemplo n.º 12
0
		public virtual void FixtureSetup()
		{
			m_DebugProcs = new DebugProcs();
		}