Ejemplo n.º 1
0
        public void CountLines3Test()
        {
            string    text      = @"aaaaaaaa";
            CountLine countLine = new CountLine();

            Assert.AreEqual(countLine.CountLines(text), 1);
        }
Ejemplo n.º 2
0
    public static void Init()
    {
        CountLine window = EditorWindow.GetWindow <CountLine>("CountLine");

        window.Show();
        window.Focus();
    }
Ejemplo n.º 3
0
        public void CountLinesTest()
        {
            string    test      = @"There once was a young horse named Mary
                               This Mary was rather quite hairy1
                               She blow-dried her hair
                               And now she's quite bare
                               Now she has less hair to carry!";
            CountLine countLine = new CountLine();

            Assert.AreEqual(countLine.CountLines(test), 5);
        }
Ejemplo n.º 4
0
        public void CountLines2Test()
        {
            string    text      = @"Love is more than a word,
                                 it says so much.
                                When I see these four letters,
                                I almost feel your touch.
                                This is only happened since,
                                I fell in love with you.
                                Why this word does this,
                                I haven't got a clue.";
            CountLine countLine = new CountLine();

            Assert.AreEqual(countLine.CountLines(text), 8);
        }