Exemplo n.º 1
0
		public void GetProperties()
		{
			CheckDisposed();

			// Putting AnthroItems in the UsageTypes doesn't really make sense, but for testing purposes
			// it doesn't matter what we store there as long as it is derived from CmPossibility
			CmAnthroItem p = new CmAnthroItem();
			Cache.LangProject.LexDbOA.UsageTypesOA.PossibilitiesOS.Append(p);
			Cache.MainCacheAccessor.SetInt(p.Hvo,
				(int)CmPossibility.CmPossibilityTags.kflidBackColor, 0xffc000);

			Assert.AreEqual(0xffc000, p.BackColor);
		}
Exemplo n.º 2
0
		public void SetGetMultiTsString()
		{
			CheckDisposed();

			CmAnthroItem p = new CmAnthroItem();
			Cache.LangProject.AnthroListOA.PossibilitiesOS.Append(p);

			// TEST WRITE
			p.Description.AnalysisDefaultWritingSystem.Text = "analysis description";
			// TEST READ
			Assert.AreEqual("analysis description", p.Description.AnalysisDefaultWritingSystem.Text);
		}