예제 #1
0
            public void OneErrorInClass()
            {
                var code = @"using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RoslynSandbox
{
    ↓class CodeReaderTests
    {
    }
}";

                CollectionAssert.AreEqual(new[] { new LinePosition(8, 4) }, CodeReader.FindDiagnosticsPositions(code));
            }