Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix whitespace in EnumTests.cs

  • Loading branch information...
commit 15762abf323aad07126a9d0b2f2e8d94302a48ee 1 parent 9571e1b
@kongo2002 kongo2002 authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 tests/ServiceStack.Text.Net40.Tests/EnumTests.cs
View
12 tests/ServiceStack.Text.Net40.Tests/EnumTests.cs
@@ -5,26 +5,26 @@ namespace ServiceStack.Text.Tests
{
[TestFixture]
public class EnumTests
- {
+ {
[SetUp]
public void SetUp()
{
JsConfig.Reset();
}
-
+
public enum EnumWithoutFlags
{
One = 1,
Two = 2
}
-
+
[Flags]
public enum EnumWithFlags
{
One = 1,
Two = 2
}
-
+
public class ClassWithEnums
{
public EnumWithFlags FlagsEnum { get; set; }
@@ -32,7 +32,7 @@ public class ClassWithEnums
public EnumWithFlags? NullableFlagsEnum { get; set; }
public EnumWithoutFlags? NullableNoFlagsEnum { get; set; }
}
-
+
[Test]
public void Can_correctly_serialize_enums()
{
@@ -46,7 +46,7 @@ public void Can_correctly_serialize_enums()
var expected = "{\"FlagsEnum\":1,\"NoFlagsEnum\":\"One\",\"NullableFlagsEnum\":2,\"NullableNoFlagsEnum\":\"Two\"}";
var text = JsonSerializer.SerializeToString(item);
-
+
Assert.AreEqual(expected, text);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.