GetReferences() public method

Gets the references where capitalization errors occurred.
public GetReferences ( IEnumerable tokens ) : List
tokens IEnumerable The Scripture tokens.
return List
		void Test(string[] result, string text)
		{
			source.Text = text;

			source.SetParameterValue("StylesInfo", stylesInfo);
			source.SetParameterValue("SentenceFinalPunctuation", ".!?");
			CapitalizationCheck check = new CapitalizationCheck(source);
			List<TextTokenSubstring> tts =
				check.GetReferences(source.TextTokens());

			Assert.AreEqual(result.Length, tts.Count,
				"A different number of results was returned from what was expected." );

			for (int i = 0; i < result.Length; i++)
				Assert.AreEqual(result[i], tts[i].InventoryText, "Result number: " + i);
		}
Example #2
0
        void Test(string[] result, string text)
        {
            source.Text = text;

            source.SetParameterValue("StylesInfo", stylesInfo);
            source.SetParameterValue("SentenceFinalPunctuation", ".!?");
            CapitalizationCheck       check = new CapitalizationCheck(source);
            List <TextTokenSubstring> tts   =
                check.GetReferences(source.TextTokens());

            Assert.AreEqual(result.Length, tts.Count,
                            "A different number of results was returned from what was expected.");

            for (int i = 0; i < result.Length; i++)
            {
                Assert.AreEqual(result[i], tts[i].InventoryText, "Result number: " + i);
            }
        }