/// <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)); }
/// <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)); }
/// <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)); }