Skip to content

Commit 75562f6

Browse files
committed
Fix UWP test build error introduced by nuget package update.
1 parent a9dc48d commit 75562f6

File tree

4 files changed

+7
-10
lines changed

4 files changed

+7
-10
lines changed

test/MsgPack.UnitTest.Uwp.Aot/MainPage.xaml.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ public MainPage()
3838
// duplicate the following line with a type from the referenced assembly
3939
nunit.AddTestAssembly( typeof( MainPage ).GetTypeInfo().Assembly );
4040

41-
// Do you want to automatically run tests when the app starts?
42-
nunit.AutoRun = true;
43-
4441
LoadApplication( nunit );
4542
}
4643
}

test/MsgPack.UnitTest.Uwp/MainPage.xaml.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ public MainPage()
3939
// duplicate the following line with a type from the referenced assembly
4040
nunit.AddTestAssembly( typeof( MainPage ).GetTypeInfo().Assembly );
4141

42-
// Do you want to automatically run tests when the app starts?
43-
nunit.AutoRun = true;
44-
4542
LoadApplication( nunit );
4643
}
4744
}

test/MsgPack.UnitTest.Xamarin.iOS/Serialization/AotTest.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
using MsgPack.Serialization.ReflectionSerializers;
2828

2929
using NUnit.Framework;
30+
#if NETFX_CORE
31+
using TestFixtureSetUp = NUnit.Framework.OneTimeSetUpAttribute;
32+
#endif // NETFX_CORE
3033

3134
namespace MsgPack.Serialization
3235
{

test/MsgPack.UnitTest/MessagePackObjectTest.Miscs.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// MessagePack for CLI
44
//
5-
// Copyright (C) 2010-2012 FUJIWARA, Yusuke
5+
// Copyright (C) 2010-2017 FUJIWARA, Yusuke
66
//
77
// Licensed under the Apache License, Version 2.0 (the "License");
88
// you may not use this file except in compliance with the License.
@@ -239,14 +239,14 @@ private static void TestToStringCore( params MessagePackObject[] targets )
239239
}
240240
}
241241

242-
#if NUNITLITE
242+
#if NUNITLITE && !NETFX_CORE
243243
private static class Does
244244
{
245245
public static NUnit.Framework.Constraints.Constraint Match( string regex )
246246
{
247247
return Is.StringMatching( regex );
248248
}
249249
}
250-
#endif // NUNITLITE
251-
}
250+
#endif // NUNITLITE && !NETFX_CORE
251+
}
252252
}

0 commit comments

Comments
 (0)