Exemplo n.º 1
0
 public void EndWithJsonPadding()
 {
     this.settings.JsonPCallback = "foo";
     RawValueWriter target = new RawValueWriter(this.settings, this.stream, new UTF32Encoding());
     target.End();
     this.StreamAsString(target).Should().Be(")");
 }
Exemplo n.º 2
0
 public void EndDoesNothingNormally()
 {
     RawValueWriter target = new RawValueWriter(this.settings, this.stream, new UTF32Encoding());
     target.End();
     this.StreamAsString(target).Should().BeEmpty();
 }