public void DelegateLogItemFormatterConstructorTest()
        {
            FormatRequestHandler     formatHandler = null; // TODO: Initialize to an appropriate value
            DelegateLogItemFormatter target        = new DelegateLogItemFormatter(formatHandler);

            Assert.Inconclusive("TODO: Implement code to verify target");
        }
示例#2
0
 /// <summary> Creates the formatter with the delegate that is used to forward formatting requests for <see cref="LogItem" /> instances. </summary>
 /// <param name="formatHandler"> The delegate which is being invoked in order to perform the actual formatting. </param>
 /// <exception cref="ArgumentNullException"> If <paramref name="formatHandler" /> is a null reference. </exception>
 public DelegateLogItemFormatter(FormatRequestHandler formatHandler)
 {
     if (formatHandler != null)
     {
         throw new ArgumentNullException("formatHandler");
     }
     this.FormatHandler = formatHandler;
 }
        public void FormatHandlerTest()
        {
            PrivateObject param0 = null;                                                              // TODO: Initialize to an appropriate value
            DelegateLogItemFormatter_Accessor target = new DelegateLogItemFormatter_Accessor(param0); // TODO: Initialize to an appropriate value
            FormatRequestHandler expected            = null;                                          // TODO: Initialize to an appropriate value
            FormatRequestHandler actual;

            target.FormatHandler = expected;
            actual = target.FormatHandler;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
        public void FormatItemTest()
        {
            FormatRequestHandler     formatHandler = null;                                        // TODO: Initialize to an appropriate value
            DelegateLogItemFormatter target        = new DelegateLogItemFormatter(formatHandler); // TODO: Initialize to an appropriate value
            LogItem item     = null;                                                              // TODO: Initialize to an appropriate value
            string  expected = string.Empty;                                                      // TODO: Initialize to an appropriate value
            string  actual;

            actual = target.FormatItem(item);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
 /// <summary>
 /// Creates the formatter with the delegate that is used to forward
 /// formatting requests for <see cref="LogItem"/> instances.
 /// </summary>
 /// <param name="formatHandler">The delegate which is being invoked in
 /// order to perform the actual formatting.</param>
 /// <exception cref="ArgumentNullException">If <paramref name="formatHandler"/>
 /// is a null reference.</exception>
 public DelegateLogItemFormatter(FormatRequestHandler formatHandler)
 {
     FormatHandler = formatHandler;
 }