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