コード例 #1
0
        /// <summary>test Reporter.NULL</summary>
        public virtual void TestReporter()
        {
            Reporter nullReporter = Reporter.Null;

            NUnit.Framework.Assert.IsNull(nullReporter.GetCounter(null));
            NUnit.Framework.Assert.IsNull(nullReporter.GetCounter("group", "name"));
            // getInputSplit method removed
            try
            {
                NUnit.Framework.Assert.IsNull(nullReporter.GetInputSplit());
            }
            catch (NotSupportedException e)
            {
                NUnit.Framework.Assert.AreEqual("NULL reporter has no input", e.Message);
            }
            NUnit.Framework.Assert.AreEqual(0, nullReporter.GetProgress(), 0.01);
        }
コード例 #2
0
 public override Counter GetCounter <_T0>(Enum <_T0> counterName)
 {
     return(reporter.GetCounter(counterName));
 }