Skip to content

Commit

Permalink
Fix in XML serialization tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Corniel committed Mar 11, 2024
1 parent cc3e25a commit 690ed36
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/Qowaiv.TestTools/SerializationWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
/// <summary>Wrapper used by <see cref="Serialize.Xml{T}(T)"/>
/// and <see cref="SerializeDeserialize.Xml{T}(T)"/>.
/// </summary>
[Mutable]
[Serializable]
[XmlRoot("Wrapper")]
public sealed class SerializationWrapper<T>
{
/// <summary>The generic part of the wrapper.</summary>
public T? Value { get; init; }
public T? Value { get; set; }
}
7 changes: 4 additions & 3 deletions src/Qowaiv.TestTools/XmlStructure.TSvo.cs
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
namespace Qowaiv.TestTools;

/// <summary>A test structure to test <see cref="IXmlSerializable"/> behavior of SVO's.</summary>
[Mutable]
[Serializable]
public sealed class XmlStructure<TSvo>
: IEquatable<XmlStructure<TSvo>>
where TSvo : struct
{
/// <summary>Gets and sets int property.</summary>
public int Id { get; init; } = 17;
public int Id { get; set; } = 17;

/// <summary>Gets and sets SVO property.</summary>
public TSvo Svo { get; init; }
public TSvo Svo { get; set; }

/// <summary>Gets and sets a date (time) property.</summary>
public DateTime Date { get; init; } = new DateTime(2017, 06, 11, 00, 00, 000, DateTimeKind.Utc);
public DateTime Date { get; set; } = new DateTime(2017, 06, 11, 00, 00, 000, DateTimeKind.Utc);

/// <inheritdoc />
[Pure]
Expand Down

0 comments on commit 690ed36

Please sign in to comment.