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

UncapitalizedPara_WithEmbeddedWordsOfChrist() private method

private UncapitalizedPara_WithEmbeddedWordsOfChrist ( ) : void
return void
		public void UncapitalizedPara_WithEmbeddedWordsOfChrist()
		{
			m_dataSource.m_tokens.Add(new DummyTextToken("and the Lord said! ", TextType.Verse,
				true, false, "Paragraph"));
			m_dataSource.m_tokens.Add(new DummyTextToken("\"if you love me, you will obey my commands.\"", TextType.Verse,
							false, false, "Paragraph", "Words Of Christ"));

			m_check.Check(m_dataSource.TextTokens(), RecordError);

			Assert.AreEqual(2, m_errors.Count);
			CheckError(0, m_dataSource.m_tokens[0].Text, 0, "a", "Sentence should begin with a capital letter");
			CheckError(1, m_dataSource.m_tokens[1].Text, 1, "i", "Sentence should begin with a capital letter");
		}
CapitalizationCheckSilUnitTest