Ejemplo n.º 1
0
 public void StartWithJsonPadding()
 {
     this.settings.JsonPCallback = "foo";
     RawValueWriter target = new RawValueWriter(this.settings, this.stream, new UTF32Encoding());
     target.Start();
     this.StreamAsString(target).Should().Be("foo(");
 }
Ejemplo n.º 2
0
 public void StartDoesNothingNormally()
 {
     RawValueWriter target = new RawValueWriter(this.settings, this.stream, new UTF32Encoding());
     target.Start();
     this.StreamAsString(target).Should().BeEmpty();
 }