Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 68ece9f

Browse files
committed
Upgrade test projs to NUnit 3.4.1
1 parent e8e584c commit 68ece9f

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

src/ServiceStack.OrmLite.Oracle.Tests/ServiceStack.OrmLite.Oracle.Tests.csproj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@
5151
<Reference Include="Northwind.Perf">
5252
<HintPath>..\..\lib\tests\Northwind.Perf.dll</HintPath>
5353
</Reference>
54-
<Reference Include="nunit.framework, Version=2.6.2.12296, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
55-
<SpecificVersion>False</SpecificVersion>
56-
<HintPath>..\..\lib\tests\nunit.framework.dll</HintPath>
54+
<Reference Include="nunit.framework, Version=3.4.1.0, Culture=neutral, PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL">
55+
<HintPath>..\packages\NUnit.3.4.1\lib\net45\nunit.framework.dll</HintPath>
56+
<Private>True</Private>
5757
</Reference>
5858
<Reference Include="ServiceStack">
5959
<HintPath>..\..\lib\ServiceStack.dll</HintPath>
@@ -425,6 +425,7 @@
425425
<None Include="app.config">
426426
<SubType>Designer</SubType>
427427
</None>
428+
<None Include="packages.config" />
428429
</ItemGroup>
429430
<ItemGroup>
430431
<EmbeddedResource Include="..\..\tests\ServiceStack.OrmLite.Tests\UseCase\ImageBlobResource.resx">
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<packages>
3+
<package id="NUnit" version="3.4.1" targetFramework="net45" />
4+
</packages>

tests/ServiceStack.OrmLite.Tests/Expression/SelectExpressionTests.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -224,29 +224,29 @@ public void Can_perform_case_sensitive_likes()
224224

225225
db.Count<Text>(q => q.Name.StartsWith("A"));
226226
Assert.That(normalizedSql(),
227-
Is.StringContaining("upper(name) like @0".NormalizeSql()));
227+
Does.Contain("upper(name) like @0".NormalizeSql()));
228228

229229
db.Count<Text>(q => q.Name.EndsWith("e"));
230230
Assert.That(normalizedSql(),
231-
Is.StringContaining("upper(name) like @0".NormalizeSql()));
231+
Does.Contain("upper(name) like @0".NormalizeSql()));
232232

233233
db.Count<Text>(q => q.Name.Contains("b"));
234234
Assert.That(normalizedSql(),
235-
Is.StringContaining("upper(name) like @0".NormalizeSql()));
235+
Does.Contain("upper(name) like @0".NormalizeSql()));
236236

237237
OrmLiteConfig.StripUpperInLike = true;
238238

239239
db.Count<Text>(q => q.Name.StartsWith("A"));
240240
Assert.That(normalizedSql(),
241-
Is.StringContaining("name like @0".NormalizeSql()));
241+
Does.Contain("name like @0".NormalizeSql()));
242242

243243
db.Count<Text>(q => q.Name.EndsWith("e"));
244244
Assert.That(normalizedSql(),
245-
Is.StringContaining("name like @0".NormalizeSql()));
245+
Does.Contain("name like @0".NormalizeSql()));
246246

247247
db.Count<Text>(q => q.Name.Contains("b"));
248248
Assert.That(normalizedSql(),
249-
Is.StringContaining("name like @0".NormalizeSql()));
249+
Does.Contain("name like @0".NormalizeSql()));
250250

251251
OrmLiteConfig.StripUpperInLike = false;
252252
}

0 commit comments

Comments
 (0)