public void FormatNullStringTest() { Assert.Throws <ArgumentNullException>( delegate { ElementUtilities.Format(null, new MethodElement()); }); }
public void FormatNullElementTest() { Assert.Throws <ArgumentNullException>( delegate { ElementUtilities.Format("$(Name)", null); }); }
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."); }
public void FormatNullStringTest() { ElementUtilities.Format(null, new MethodElement()); }
public void FormatNullElementTest() { ElementUtilities.Format("$(Name)", null); }
public void FormatNullStringTest() { Assert.Throws(typeof(ArgumentNullException), () => ElementUtilities.Format(null, new MethodElement())); }
public void FormatNullElementTest() { Assert.Throws(typeof(ArgumentNullException), () => ElementUtilities.Format("$(Name)", null)); }