Esempio n. 1
0
            /// <summary>
            /// Execute a single test iteration.
            /// </summary>
            /// <param name="watch">The stopwatch timing the iteration.</param>
            /// <returns>A value indicating whether or not the test is valid.</returns>
            public bool Execute(Stopwatch watch)
            {
                JsonBuilder writer = JsonDna.PerpareWriter();

                JsonDna.RecursiveObject(writer, 3, 3);
                return(JsonDna.ConfirmWriter(writer, Constants.ComplexJson, watch));
            }
Esempio n. 2
0
            /// <summary>
            /// Execute a single test iteration.
            /// </summary>
            /// <param name="watch">The stopwatch timing the iteration.</param>
            /// <returns>A value indicating whether or not the test is valid.</returns>
            public bool Execute(Stopwatch watch)
            {
                JsonBuilder writer = JsonDna.PerpareWriter();

                writer.WriteValue(Constants.TextValue);
                return(JsonDna.ConfirmWriter(writer, Constants.TextJson, watch));
            }
Esempio n. 3
0
            /// <summary>
            /// Execute a single test iteration.
            /// </summary>
            /// <param name="watch">The stopwatch timing the iteration.</param>
            /// <returns>A value indicating whether or not the test is valid.</returns>
            public bool Execute(Stopwatch watch)
            {
                JsonBuilder writer = JsonDna.PerpareWriter();

                writer.OpenArray();
                writer.WriteValue(Constants.LogicalValue);
                writer.WriteValue(Constants.IntegralValue);
                writer.WriteValue(Constants.FloatValue);
                writer.WriteValue(Constants.TextValue);
                writer.CloseToken();
                return(JsonDna.ConfirmWriter(writer, Constants.ArrayJson, watch));
            }