Esempio n. 1
0
 /// <summary>
 /// Copy Constructor for MmMetadataBlock
 /// </summary>
 /// <param name="original">MmMetadataBlock to be copied.</param>
 public MmMetadataBlock(MmMetadataBlock original)
 {
     LevelFilter    = original.LevelFilter;
     ActiveFilter   = original.ActiveFilter;
     SelectedFilter = original.SelectedFilter;
     NetworkFilter  = original.NetworkFilter;
     Tag            = original.Tag;
 }
    /// <summary>
    /// Start this instance.
    /// </summary>
    public override void Start()
    {
        Results = new StringBuilder();

        //Debug.Log ("Set to repeat call: " + Repetitions + " times.");
        Results.AppendLine("Set to repeat call: " + Repetitions + " times.");

        //Prepare the relay node for the mercury test
        myNode  = GetRelayNode();
        mmBlock = new MmMetadataBlock(MmLevelFilter.Self, MmActiveFilter.All);

        //Prepare the stopwatch we'll use across tests. It will be reset each time.
        stopWatch = new System.Diagnostics.Stopwatch();

        //Prepare the total time stop watch.
        totalWatch = new System.Diagnostics.Stopwatch();

        OnEventTest += SimpleFunction;
    }