XmlTestWriter.Write Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Write(String, Object[]) |
Serializes each provided test object and writes the resulting XML to the specified XML file. |
Write(String, Object[], Formatting) |
Serializes each provided test object and writes the resulting XML to the specified XML file by using the specified XML formatting. |
Write(String, Object[])
Serializes each provided test object and writes the resulting XML to the specified XML file.
public:
void Write(System::String ^ destination, cli::array <System::Object ^> ^ tests);
public void Write (string destination, object[] tests);
member this.Write : string * obj[] -> unit
Public Sub Write (destination As String, tests As Object())
Parameters
- destination
- String
The name of the file to write to.
- tests
- Object[]
An array of test objects.
Applies to
Write(String, Object[], Formatting)
Serializes each provided test object and writes the resulting XML to the specified XML file by using the specified XML formatting.
public:
void Write(System::String ^ destination, cli::array <System::Object ^> ^ tests, System::Xml::Formatting formatting);
public void Write (string destination, object[] tests, System.Xml.Formatting formatting);
member this.Write : string * obj[] * System.Xml.Formatting -> unit
Public Sub Write (destination As String, tests As Object(), formatting As Formatting)
Parameters
- destination
- String
The name of the file to write to.
- tests
- Object[]
An array of test objects.
- formatting
- Formatting
One of the Formatting values.