File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11using System . Data . Common ;
22using static Microsoft . VisualStudio . TestTools . UnitTesting . Assert ;
3+ using static SqlServerSimulator . TestHelpers ;
34
45namespace SqlServerSimulator ;
56
67[ TestClass ]
78public sealed class BuiltInFunctionTests
89{
9- private static object ? ExecuteScalar ( string commandText ) => new Simulation ( ) . ExecuteScalar ( commandText ) ;
10-
11- private static T ExecuteScalar < T > ( string commandText ) where T : struct => new Simulation ( ) . ExecuteScalar < T > ( commandText ) ;
1210
1311 [ TestMethod ]
1412 public void UnrecognizedBuiltInFunction ( )
Original file line number Diff line number Diff line change 11using System . Data . Common ;
2+ using static SqlServerSimulator . TestHelpers ;
23
34namespace SqlServerSimulator ;
45
56[ TestClass ]
67public class SelectTests
78{
8- private static object ? ExecuteScalar ( string commandText ) => new Simulation ( ) . ExecuteScalar ( commandText ) ;
9-
109 private static DbDataReader ExecuteReaderAndRead ( string commandText )
1110 {
1211 var reader = new Simulation ( ) . ExecuteReader ( commandText ) ;
Original file line number Diff line number Diff line change 1+ namespace SqlServerSimulator ;
2+
3+ internal static class TestHelpers
4+ {
5+ public static object ? ExecuteScalar ( string commandText ) => new Simulation ( ) . ExecuteScalar ( commandText ) ;
6+
7+ public static T ExecuteScalar < T > ( string commandText ) where T : struct => new Simulation ( ) . ExecuteScalar < T > ( commandText ) ;
8+ }
You can’t perform that action at this time.
0 commit comments