public void WriteNull_WritesDefaultNullSymbolToScrawler() { var scrawlerMock = new Mock <Scrawler>(); var context = new WriteContext(scrawlerMock.Object); scrawlerMock.Setup(s => s.Write(context.NullSymbol)) .Verifiable(); context.WriteNull(); NotNull(context.NullSymbol); scrawlerMock.Verify(); }
public void WriteNull_WritesNullSymbolToScrawler(string nullSymbol) { var scrawlerMock = new Mock <Scrawler>(); var context = new WriteContext(scrawlerMock.Object); context.NullSymbol = nullSymbol; scrawlerMock.Setup(s => s.Write(nullSymbol)) .Verifiable(); context.WriteNull(); Equal(nullSymbol, context.NullSymbol); scrawlerMock.Verify(); }