SILUBS.ScriptureChecks.CapitalizationCheckSilUnitTest.GetLengthOfChar C# (CSharp) Method

GetLengthOfChar() private method

private GetLengthOfChar ( ) : void
return void
		public void GetLengthOfChar()
		{
			CapitalizationProcessor processor = new CapitalizationProcessor(m_dataSource, null);

			Assert.AreEqual(1, ReflectionHelper.GetIntResult(processor, "GetLengthOfChar",
				new DummyTextToken("a has no diacritics.", TextType.Verse, true, false,
				"Paragraph"), 0));
			Assert.AreEqual(2, ReflectionHelper.GetIntResult(processor, "GetLengthOfChar",
				new DummyTextToken("a\u0303 has a tilde.", TextType.Verse, true, false,
				"Paragraph"), 0));
			Assert.AreEqual(3, ReflectionHelper.GetIntResult(processor, "GetLengthOfChar",
				new DummyTextToken("a\u0303\u0301 has a tilde and grave accent.",
				TextType.Verse, true, false, "Paragraph"), 0));
			Assert.AreEqual(4, ReflectionHelper.GetIntResult(processor, "GetLengthOfChar",
				new DummyTextToken("a\u0303\u0301\u0302 has a tilde, grave accent and circumflex accent.",
				TextType.Verse, true, false, "Paragraph"), 0));
		}
		#endregion
CapitalizationCheckSilUnitTest