Verifies that an object can be serialized to Xml using an
XmlSerializer and returns the resulting Xml as a string.
Namespace:
MbUnit.FrameworkAssembly: MbUnit (in MbUnit.dll) Version: 3.3.0.0 (3.3.610.0)
Syntax
| C# |
|---|
public static string XmlSerialize( Object value ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function XmlSerialize ( _ value As Object _ ) As String |
Parameters
- value
- Type: System..::.Object
The value.
Return Value
The serialized Xml.
Remarks
The assertion fails if value is null.
Exceptions
| Exception | Condition |
|---|---|
| Gallio.Framework.Assertions..::.AssertionException | Thrown if the verification failed unless the current AssertionFailureBehavior indicates otherwise. |
