This repository was archived by the owner on Dec 24, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +14
-17
lines changed
tests/ServiceStack.Text.Tests Expand file tree Collapse file tree 6 files changed +14
-17
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ static Env()
14
14
throw new ArgumentException ( "PclExport.Instance needs to be initialized" ) ;
15
15
16
16
var platformName = PclExport . Instance . PlatformName ;
17
- if ( platformName != " WindowsStore" )
17
+ if ( platformName != PclExport . Platforms . WindowsStore )
18
18
{
19
19
IsMono = AssemblyUtils . FindType ( "Mono.Runtime" ) != null ;
20
20
@@ -31,7 +31,7 @@ static Env()
31
31
}
32
32
else
33
33
{
34
- IsWinRT = true ;
34
+ IsWindowsStore = true ;
35
35
}
36
36
37
37
#if PCL
@@ -59,7 +59,7 @@ static Env()
59
59
60
60
public static bool IsAndroid { get ; set ; }
61
61
62
- public static bool IsWinRT { get ; set ; }
62
+ public static bool IsWindowsStore { get ; set ; }
63
63
64
64
public static bool IsSilverlight { get ; set ; }
65
65
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public class Sl5PclExport : PclExport
18
18
19
19
public Sl5PclExport ( )
20
20
{
21
- this . PlatformName = " Silverlight5" ;
21
+ this . PlatformName = Platforms . Silverlight5 ;
22
22
}
23
23
24
24
public static PclExport Configure ( )
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ public class WpPclExport : PclExport
17
17
18
18
public WpPclExport ( )
19
19
{
20
- this . PlatformName = " WindowsPhone" ;
20
+ this . PlatformName = Platforms . WindowsPhone ;
21
21
}
22
22
23
23
public static PclExport Configure ( )
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ public class WinStorePclExport : PclExport
16
16
17
17
public WinStorePclExport ( )
18
18
{
19
- this . PlatformName = " WindowsStore" ;
19
+ this . PlatformName = Platforms . WindowsStore ;
20
20
}
21
21
22
22
public static PclExport Configure ( )
Original file line number Diff line number Diff line change @@ -20,10 +20,14 @@ namespace ServiceStack
20
20
{
21
21
public abstract class PclExport
22
22
{
23
- public const string WindowsStore = "WindowsStore" ;
24
- public const string Android = "Android" ;
25
- public const string IOS = "IOS" ;
26
- public const string Silverlight5 = "Silverlight5" ;
23
+ public static class Platforms
24
+ {
25
+ public const string WindowsStore = "WindowsStore" ;
26
+ public const string Android = "Android" ;
27
+ public const string IOS = "IOS" ;
28
+ public const string Silverlight5 = "Silverlight5" ;
29
+ public const string WindowsPhone = "WindowsPhone" ;
30
+ }
27
31
28
32
public static PclExport Instance
29
33
#if PCL
Original file line number Diff line number Diff line change @@ -50,13 +50,6 @@ public class Bar
50
50
[ TestFixture ]
51
51
public class SerializEmitLowerCaseUnderscoreNamesTests
52
52
{
53
- //[SetUp]
54
- //public void Reset()
55
- //{
56
- // JsConfig.EmitLowercaseUnderscoreNames = false;
57
- // JsConfig<TestObject>.EmitLowercaseUnderscoreNames = null;
58
- //}
59
-
60
53
[ Test ]
61
54
public void TestJsonDataWithJsConfigScope ( )
62
55
{
You can’t perform that action at this time.
0 commit comments