File tree Expand file tree Collapse file tree 4 files changed +7
-10
lines changed
MsgPack.UnitTest.Xamarin.iOS/Serialization Expand file tree Collapse file tree 4 files changed +7
-10
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change 2727using MsgPack . Serialization . ReflectionSerializers ;
2828
2929using NUnit . Framework ;
30+ #if NETFX_CORE
31+ using TestFixtureSetUp = NUnit . Framework . OneTimeSetUpAttribute ;
32+ #endif // NETFX_CORE
3033
3134namespace MsgPack . Serialization
3235{
Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments