public void MyTestInitialize()
        {
            this.defaultUnitManager = UnitManager.Instance;
            UnitManager.Instance = new UnitManager();
            UnitManager.RegisterByAssembly(typeof(global::Arebis.Types.LengthUnits).Assembly);

            Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
        }
		public void MyTestInitialize()
		{
			Console.Write("Resetting the UnitManager instance...");
			this.defaultUnitManager = UnitManager.Instance;
			UnitManager.Instance = new UnitManager();
            UnitManager.RegisterByAssembly(typeof(global::Arebis.Types.LengthUnits).Assembly);
            Console.WriteLine(" done.");
		}
 /// <summary>
 /// Asserts a property of type IUnitConsumer has a value expressed in a unit
 /// compatible to the given one.
 /// </summary>
 public AssertUnitCompatibilityAttribute(string unitName)
     : base("Value is expressed in incompatible unit.")
 {
     unit = UnitManager.GetUnitByName(unitName);
 }