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

UncapitalizedProperName_ParaStart() private method

private UncapitalizedProperName_ParaStart ( ) : void
return void
		public void UncapitalizedProperName_ParaStart()
		{
			m_dataSource.m_tokens.Add(new DummyTextToken("this",
				TextType.Verse, true, false, "Paragraph", "Name Of God"));
			m_dataSource.m_tokens.Add(new DummyTextToken(
				" is a proper name, my friend! ",
				TextType.Verse, false, false, "Paragraph"));
			m_check.Check(m_dataSource.TextTokens(), RecordError);
			Assert.AreEqual(1, m_errors.Count);
			// This word should be capitalized for two reasons: it occurs sentence initially and it
			// is a proper noun.
			CheckError(0, m_dataSource.m_tokens[0].Text, 0, "t", "Sentence should begin with a capital letter");
		}
CapitalizationCheckSilUnitTest