public void SerializeStack() { ImmutableStack <string> l = ImmutableStack.From(new List <string> { "One", "II", "3" }); string json = JsonConvert.SerializeObject(l, Formatting.Indented); Assert.AreEqual(@"[ ""3"", ""II"", ""One"" ]", json); }
public void SerializeStack() { ImmutableStack <string> l = ImmutableStack.From(new List <string> { "One", "II", "3" }); string json = JsonConvert.SerializeObject(l, Formatting.Indented); Assert.AreEqual(@"[ ""3"", ""II"", ""One"" ]", json); }