Пример #1
0
 public void FormatNullStringTest()
 {
     Assert.Throws <ArgumentNullException>(
         delegate
     {
         ElementUtilities.Format(null, new MethodElement());
     });
 }
Пример #2
0
 public void FormatNullElementTest()
 {
     Assert.Throws <ArgumentNullException>(
         delegate
     {
         ElementUtilities.Format("$(Name)", null);
     });
 }
Пример #3
0
        public void FormatTest()
        {
            MethodElement methodElement = new MethodElement();

            methodElement.Name = "Test";

            string formatted = ElementUtilities.Format(
                "End $(ElementType) $(Name)",
                methodElement);

            Assert.AreEqual("End Method Test", formatted, "Unexpected formatted result.");
        }
Пример #4
0
 public void FormatNullStringTest()
 {
     ElementUtilities.Format(null, new MethodElement());
 }
Пример #5
0
 public void FormatNullElementTest()
 {
     ElementUtilities.Format("$(Name)", null);
 }
Пример #6
0
 public void FormatNullStringTest()
 {
     Assert.Throws(typeof(ArgumentNullException), () => ElementUtilities.Format(null, new MethodElement()));
 }
Пример #7
0
 public void FormatNullElementTest()
 {
     Assert.Throws(typeof(ArgumentNullException), () => ElementUtilities.Format("$(Name)", null));
 }