Example #1
0
        // DESCRIPTION:
        // * Tests if the numMixer successfully changes to the specified parity.
        //
        // POSTCONDITIONS:
        // * numMixer may have changed parity.


        static void printStats(numMixer numMixerObj, ref StreamWriter sw)
        {
            writeHeader("STATS", ref sw);
            sw.WriteLine("Output controller state change count: {0}.",
                         numMixerObj.stateChangeCount());
            string state = "Output controller is ";

            if (numMixerObj.isActive())
            {
                state += "active";
            }
            else
            {
                state += "inactive.";
            }
            sw.WriteLine("{0}\r\n\r\n", state);
        }