コード例 #1
0
        void VerifyCharProps(TextSource source, int ich, int ws, int ichMinExpected, int ichLimExpected, string label)
        {
            LgCharRenderProps props;
            int ichMin, ichLim;

            source.GetCharProps(ich, out props, out ichMin, out ichLim);
            Assert.AreEqual(ichMinExpected, ichMin, label + " - ichMin");
            Assert.AreEqual(ichLimExpected, ichLim, label + " - ichLim");
            Assert.AreEqual(ws, props.ws, label + " - ws");
        }
コード例 #2
0
ファイル: TextSourceTests.cs プロジェクト: bbriggs/FieldWorks
		void VerifyCharProps(TextSource source, int ich, int ws, int ichMinExpected, int ichLimExpected, string label)
		{
			LgCharRenderProps props;
			int ichMin, ichLim;
			source.GetCharProps(ich, out props, out ichMin, out ichLim);
			Assert.AreEqual(ichMinExpected, ichMin, label + " - ichMin");
			Assert.AreEqual(ichLimExpected, ichLim, label + " - ichLim");
			Assert.AreEqual(ws, props.ws, label + " - ws");
		}