Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

move EnumTests into ServiceStack.Text.Tests

  • Loading branch information...
commit 74034cb180de6417fc33ce9898fd0c6fcd288980 1 parent 15762ab
@kongo2002 kongo2002 authored
View
1  tests/ServiceStack.Text.Net40.Tests/ServiceStack.Text.Net40.Tests.csproj
@@ -319,7 +319,6 @@
<Compile Include="DynamicJsonTests.cs" />
<Compile Include="ExpandoTests.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
- <Compile Include="EnumTests.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\ServiceStack.Text.Net40\ServiceStack.Text.Net40.csproj">
View
6 ...erviceStack.Text.Net40.Tests/EnumTests.cs → tests/ServiceStack.Text.Tests/EnumTests.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using NUnit.Framework;
namespace ServiceStack.Text.Tests
@@ -43,8 +43,8 @@ public void Can_correctly_serialize_enums()
NullableFlagsEnum = EnumWithFlags.Two,
NullableNoFlagsEnum = EnumWithoutFlags.Two
};
-
- var expected = "{\"FlagsEnum\":1,\"NoFlagsEnum\":\"One\",\"NullableFlagsEnum\":2,\"NullableNoFlagsEnum\":\"Two\"}";
+
+ const string expected = "{\"FlagsEnum\":1,\"NoFlagsEnum\":\"One\",\"NullableFlagsEnum\":2,\"NullableNoFlagsEnum\":\"Two\"}";
var text = JsonSerializer.SerializeToString(item);
Assert.AreEqual(expected, text);
View
1  tests/ServiceStack.Text.Tests/ServiceStack.Text.Tests.csproj
@@ -172,6 +172,7 @@
<Compile Include="CyclicalDependencyTests.cs" />
<Compile Include="DynamicModels\GoogleMapsApiTests.cs" />
<Compile Include="DateTimeOffsetAndTimeSpanTests.cs" />
+ <Compile Include="EnumTests.cs" />
<Compile Include="JsonTests\BasicPropertiesTests.cs" />
<Compile Include="JsonObjectTests.cs" />
<Compile Include="JsonTests\AnonymousDeserializationTests.cs" />
Please sign in to comment.
Something went wrong with that request. Please try again.