Beispiel #1
0
        public void GetTextAt_3LinesRange_Ok(string location, string expectedText)
        {
            TokenTextPart textPart = GetTokenTextPart(3);
            TokenTextLayerPart <CommentLayerFragment> layerPart = GetPart();

            string text = layerPart.GetTextAt(textPart, location);

            Assert.Equal(expectedText, text);
        }
Beispiel #2
0
        public void GetTextAt_InvalidLocation_Null()
        {
            TokenTextPart textPart = GetTokenTextPart(3);
            TokenTextLayerPart <CommentLayerFragment> layerPart = GetPart();

            string text = layerPart.GetTextAt(textPart, "12.3");

            Assert.Null(text);
        }