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

            target.End();
            Assert.Empty(this.StreamAsString(target));
        }
 public void EndDoesNothingNormally()
 {
     RawValueWriter target = new RawValueWriter(this.settings, this.stream, new UTF32Encoding());
     target.End();
     this.StreamAsString(target).Should().BeEmpty();
 }