~alexreg/mathtexdotnet/0.1

« back to all changes in this revision

Viewing changes to TexDotNet.Tests/DebugExtensions.cs

  • Committer: Alex Regueiro
  • Date: 2009-08-07 23:14:32 UTC
  • Revision ID: alexreg@gmail.com-20090807231432-b4enxrxowf8ertnj
Initial commit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
using System;
 
2
using System.Collections.Generic;
 
3
using System.Linq;
 
4
using System.Text;
 
5
 
 
6
namespace TexDotNet.Tests
 
7
{
 
8
    using TokenStream = IEnumerable<Token>;
 
9
 
 
10
    public static class DebugExtensions
 
11
    {
 
12
        public static string ToTokenString(this TokenStream stream)
 
13
        {
 
14
            return string.Join(" ", stream.Select(t => t.ToString()).ToArray());
 
15
        }
 
16
    }
 
17
}