Esempio n. 1
0
        public void ResultsAreEqual()
        {
            var bench = new StringFormatting();
            var a     = bench.Default();
            var b     = bench.StringBuilder();
            var c     = bench.StringBuilderWithInitializedSize();
            var d     = bench.StringBuilderWithInitializedSizeAndFormat();
            var e     = bench.CachedStringBuilderWithFormat();

            b.Length.Should().Be(a.Length);
            c.Length.Should().Be(a.Length);
            d.Length.Should().Be(a.Length);
            e.Length.Should().Be(a.Length);
        }