Skip to content

Commit bddb412

Browse files
Mitigate diagnostics DX0024 (#666)
1 parent 003f29e commit bddb412

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

net/DevExtreme.AspNet.Data.Tests.Common/SqlServerTestDbHelper.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Data.SqlClient;
1+
using System.Data.SqlClient;
42
using System.IO;
53
using System.Reflection;
6-
using System.Text;
74

85
namespace DevExtreme.AspNet.Data.Tests {
96

@@ -32,10 +29,12 @@ public void ResetDatabase() {
3229
conn.Open();
3330

3431
void Exec(string sql) {
32+
#pragma warning disable DX0024 // this is assembly with tests
3533
using(var cmd = conn.CreateCommand()) {
3634
cmd.CommandText = sql;
3735
cmd.ExecuteNonQuery();
3836
}
37+
#pragma warning restore DX0024 // this is assembly with tests
3938
}
4039

4140
try {

0 commit comments

Comments
 (0)