Skip to content

Commit 393c672

Browse files
committed
tests: Remove #if for platform in each test
1 parent bedcf0a commit 393c672

25 files changed

Lines changed: 30 additions & 384 deletions

tests/ArithmeticTest.cs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,6 @@
44
using NUnit.Framework;
55
using SQLite.Net.Attributes;
66

7-
#if __WIN32__
8-
using SQLitePlatformTest = SQLite.Net.Platform.Win32.SQLitePlatformWin32;
9-
#elif WINDOWS_PHONE
10-
using SQLitePlatformTest = SQLite.Net.Platform.WindowsPhone8.SQLitePlatformWP8;
11-
#elif __WINRT__
12-
using SQLitePlatformTest = SQLite.Net.Platform.WinRT.SQLitePlatformWinRT;
13-
#elif __IOS__
14-
using SQLitePlatformTest = SQLite.Net.Platform.XamarinIOS.SQLitePlatformIOS;
15-
#elif __ANDROID__
16-
using SQLitePlatformTest = SQLite.Net.Platform.XamarinAndroid.SQLitePlatformAndroid;
17-
#elif __OSX__
18-
using SQLitePlatformTest = SQLite.Net.Platform.OSX.SQLitePlatformOSX;
19-
#else
20-
using SQLitePlatformTest = SQLite.Net.Platform.Generic.SQLitePlatformGeneric;
21-
#endif
22-
23-
247
namespace SQLite.Net.Tests
258
{
269
[TestFixture]

tests/AsyncTests.cs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,6 @@
99
using SQLite.Net.Async;
1010
using SQLite.Net.Attributes;
1111

12-
#if __WIN32__
13-
using SQLitePlatformTest = SQLite.Net.Platform.Win32.SQLitePlatformWin32;
14-
#elif WINDOWS_PHONE
15-
using SQLitePlatformTest = SQLite.Net.Platform.WindowsPhone8.SQLitePlatformWP8;
16-
#elif __WINRT__
17-
using SQLitePlatformTest = SQLite.Net.Platform.WinRT.SQLitePlatformWinRT;
18-
#elif __IOS__
19-
using SQLitePlatformTest = SQLite.Net.Platform.XamarinIOS.SQLitePlatformIOS;
20-
#elif __ANDROID__
21-
using SQLitePlatformTest = SQLite.Net.Platform.XamarinAndroid.SQLitePlatformAndroid;
22-
#elif __OSX__
23-
using SQLitePlatformTest = SQLite.Net.Platform.OSX.SQLitePlatformOSX;
24-
#else
25-
using SQLitePlatformTest = SQLite.Net.Platform.Generic.SQLitePlatformGeneric;
26-
#endif
2712

2813
namespace SQLite.Net.Tests
2914
{

tests/BackupTest.cs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,6 @@
44
using NUnit.Framework;
55
using SQLite.Net.Attributes;
66
using System.IO;
7-
#if __WIN32__
8-
using SQLitePlatformTest = SQLite.Net.Platform.Win32.SQLitePlatformWin32;
9-
10-
#elif WINDOWS_PHONE
11-
using SQLitePlatformTest = SQLite.Net.Platform.WindowsPhone8.SQLitePlatformWP8;
12-
13-
#elif __WINRT__
14-
using SQLitePlatformTest = SQLite.Net.Platform.WinRT.SQLitePlatformWinRT;
15-
16-
#elif __IOS__
17-
using SQLitePlatformTest = SQLite.Net.Platform.XamarinIOS.SQLitePlatformIOS;
18-
19-
#elif __ANDROID__
20-
using SQLitePlatformTest = SQLite.Net.Platform.XamarinAndroid.SQLitePlatformAndroid;
21-
22-
#elif __OSX__
23-
using SQLitePlatformTest = SQLite.Net.Platform.OSX.SQLitePlatformOSX;
24-
25-
#else
26-
using SQLitePlatformTest = SQLite.Net.Platform.Generic.SQLitePlatformGeneric;
27-
#endif
287

298
namespace SQLite.Net.Tests
309
{

tests/BlobSerializationTest.cs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,6 @@
33
using System.Collections.Generic;
44
using System.Linq;
55
using SQLite.Net.Attributes;
6-
7-
#if __WIN32__
8-
using SQLitePlatformTest = SQLite.Net.Platform.Win32.SQLitePlatformWin32;
9-
#elif WINDOWS_PHONE
10-
using SQLitePlatformTest = SQLite.Net.Platform.WindowsPhone8.SQLitePlatformWP8;
11-
#elif __WINRT__
12-
using SQLitePlatformTest = SQLite.Net.Platform.WinRT.SQLitePlatformWinRT;
13-
#elif __IOS__
14-
using SQLitePlatformTest = SQLite.Net.Platform.XamarinIOS.SQLitePlatformIOS;
15-
#elif __ANDROID__
16-
using SQLitePlatformTest = SQLite.Net.Platform.XamarinAndroid.SQLitePlatformAndroid;
17-
#elif __OSX__
18-
using SQLitePlatformTest = SQLite.Net.Platform.OSX.SQLitePlatformOSX;
19-
#else
20-
using SQLitePlatformTest = SQLite.Net.Platform.Generic.SQLitePlatformGeneric;
21-
#endif
22-
236
using NUnit.Framework;
247

258
namespace SQLite.Net.Tests

tests/BooleanTest.cs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,6 @@
44
using SQLite.Net.Attributes;
55
using SQLite.Net.Interop;
66

7-
#if __WIN32__
8-
using SQLitePlatformTest = SQLite.Net.Platform.Win32.SQLitePlatformWin32;
9-
#elif WINDOWS_PHONE
10-
using SQLitePlatformTest = SQLite.Net.Platform.WindowsPhone8.SQLitePlatformWP8;
11-
#elif __WINRT__
12-
using SQLitePlatformTest = SQLite.Net.Platform.WinRT.SQLitePlatformWinRT;
13-
#elif __IOS__
14-
using SQLitePlatformTest = SQLite.Net.Platform.XamarinIOS.SQLitePlatformIOS;
15-
#elif __ANDROID__
16-
using SQLitePlatformTest = SQLite.Net.Platform.XamarinAndroid.SQLitePlatformAndroid;
17-
#elif __OSX__
18-
using SQLitePlatformTest = SQLite.Net.Platform.OSX.SQLitePlatformOSX;
19-
#else
20-
using SQLitePlatformTest = SQLite.Net.Platform.Generic.SQLitePlatformGeneric;
21-
#endif
22-
237
namespace SQLite.Net.Tests
248
{
259
[TestFixture]

tests/ByteArrayTest.cs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,6 @@
22
using NUnit.Framework;
33
using SQLite.Net.Attributes;
44

5-
#if __WIN32__
6-
using SQLitePlatformTest = SQLite.Net.Platform.Win32.SQLitePlatformWin32;
7-
#elif WINDOWS_PHONE
8-
using SQLitePlatformTest = SQLite.Net.Platform.WindowsPhone8.SQLitePlatformWP8;
9-
#elif __WINRT__
10-
using SQLitePlatformTest = SQLite.Net.Platform.WinRT.SQLitePlatformWinRT;
11-
#elif __IOS__
12-
using SQLitePlatformTest = SQLite.Net.Platform.XamarinIOS.SQLitePlatformIOS;
13-
#elif __ANDROID__
14-
using SQLitePlatformTest = SQLite.Net.Platform.XamarinAndroid.SQLitePlatformAndroid;
15-
#elif __OSX__
16-
using SQLitePlatformTest = SQLite.Net.Platform.OSX.SQLitePlatformOSX;
17-
#else
18-
using SQLitePlatformTest = SQLite.Net.Platform.Generic.SQLitePlatformGeneric;
19-
#endif
20-
215
namespace SQLite.Net.Tests
226
{
237
[TestFixture]

tests/CollateTest.cs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,6 @@
33
using SQLite.Net.Attributes;
44
using SQLite.Net.Interop;
55

6-
#if __WIN32__
7-
using SQLitePlatformTest = SQLite.Net.Platform.Win32.SQLitePlatformWin32;
8-
#elif WINDOWS_PHONE
9-
using SQLitePlatformTest = SQLite.Net.Platform.WindowsPhone8.SQLitePlatformWP8;
10-
#elif __WINRT__
11-
using SQLitePlatformTest = SQLite.Net.Platform.WinRT.SQLitePlatformWinRT;
12-
#elif __IOS__
13-
using SQLitePlatformTest = SQLite.Net.Platform.XamarinIOS.SQLitePlatformIOS;
14-
#elif __ANDROID__
15-
using SQLitePlatformTest = SQLite.Net.Platform.XamarinAndroid.SQLitePlatformAndroid;
16-
#elif __OSX__
17-
using SQLitePlatformTest = SQLite.Net.Platform.OSX.SQLitePlatformOSX;
18-
#else
19-
using SQLitePlatformTest = SQLite.Net.Platform.Generic.SQLitePlatformGeneric;
20-
#endif
21-
226
namespace SQLite.Net.Tests
237
{
248
[TestFixture]

tests/ConnectionTrackingTest.cs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,6 @@
33
using SQLite.Net.Attributes;
44
using SQLite.Net.Interop;
55

6-
#if __WIN32__
7-
using SQLitePlatformTest = SQLite.Net.Platform.Win32.SQLitePlatformWin32;
8-
#elif WINDOWS_PHONE
9-
using SQLitePlatformTest = SQLite.Net.Platform.WindowsPhone8.SQLitePlatformWP8;
10-
#elif __WINRT__
11-
using SQLitePlatformTest = SQLite.Net.Platform.WinRT.SQLitePlatformWinRT;
12-
#elif __IOS__
13-
using SQLitePlatformTest = SQLite.Net.Platform.XamarinIOS.SQLitePlatformIOS;
14-
#elif __ANDROID__
15-
using SQLitePlatformTest = SQLite.Net.Platform.XamarinAndroid.SQLitePlatformAndroid;
16-
#elif __OSX__
17-
using SQLitePlatformTest = SQLite.Net.Platform.OSX.SQLitePlatformOSX;
18-
#else
19-
using SQLitePlatformTest = SQLite.Net.Platform.Generic.SQLitePlatformGeneric;
20-
#endif
21-
226
namespace SQLite.Net.Tests
237
{
248
[NUnit.Framework.Ignore("This test class/file was not included in the original project and is broken")]

tests/ContainsTest.cs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,6 @@
44
using SQLite.Net.Attributes;
55
using SQLite.Net.Interop;
66

7-
#if __WIN32__
8-
using SQLitePlatformTest = SQLite.Net.Platform.Win32.SQLitePlatformWin32;
9-
#elif WINDOWS_PHONE
10-
using SQLitePlatformTest = SQLite.Net.Platform.WindowsPhone8.SQLitePlatformWP8;
11-
#elif __WINRT__
12-
using SQLitePlatformTest = SQLite.Net.Platform.WinRT.SQLitePlatformWinRT;
13-
#elif __IOS__
14-
using SQLitePlatformTest = SQLite.Net.Platform.XamarinIOS.SQLitePlatformIOS;
15-
#elif __ANDROID__
16-
using SQLitePlatformTest = SQLite.Net.Platform.XamarinAndroid.SQLitePlatformAndroid;
17-
#elif __OSX__
18-
using SQLitePlatformTest = SQLite.Net.Platform.OSX.SQLitePlatformOSX;
19-
#else
20-
using SQLitePlatformTest = SQLite.Net.Platform.Generic.SQLitePlatformGeneric;
21-
#endif
22-
237
namespace SQLite.Net.Tests
248
{
259
[TestFixture]

tests/DateTimeOffsetTest.cs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,6 @@
33
using SQLite.Net.Attributes;
44
using NUnit.Framework;
55

6-
#if __WIN32__
7-
using SQLitePlatformTest = SQLite.Net.Platform.Win32.SQLitePlatformWin32;
8-
#elif WINDOWS_PHONE
9-
using SQLitePlatformTest = SQLite.Net.Platform.WindowsPhone8.SQLitePlatformWP8;
10-
#elif __WINRT__
11-
using SQLitePlatformTest = SQLite.Net.Platform.WinRT.SQLitePlatformWinRT;
12-
#elif __IOS__
13-
using SQLitePlatformTest = SQLite.Net.Platform.XamarinIOS.SQLitePlatformIOS;
14-
#elif __ANDROID__
15-
using SQLitePlatformTest = SQLite.Net.Platform.XamarinAndroid.SQLitePlatformAndroid;
16-
#elif __OSX__
17-
using SQLitePlatformTest = SQLite.Net.Platform.OSX.SQLitePlatformOSX;
18-
#else
19-
using SQLitePlatformTest = SQLite.Net.Platform.Generic.SQLitePlatformGeneric;
20-
#endif
21-
22-
236
namespace SQLite.Net.Tests
247
{
258
[TestFixture]

0 commit comments

Comments
 (0)