예제 #1
0
        public void TestCopyToClipboard1()
        {
            _lines.Add(new LogLine(0, 0, "Foobar", LevelFlags.Info));
            _lines.Add(new LogLine(1, 1, "Clondyke bar", LevelFlags.Info));
            _control.LogFile = _logFile.Object;
            _control.Select(1);
            _control.CopySelectedLinesToClipboard();

            Clipboard.GetText().Should().Be("Clondyke bar");
        }
예제 #2
0
        public void TestCopyToClipboard1()
        {
            _logSource.AddEntry("Foobar", LevelFlags.Info);
            _logSource.AddEntry("Clondyke bar", LevelFlags.Info);
            _control.LogSource = _logSource;
            _control.Select(1);
            _control.CopySelectedLinesToClipboard();

            Clipboard.GetText().Should().Be("Clondyke bar");
        }