Skip to content

Commit

Permalink
Attended to warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-E-angelo committed Dec 3, 2020
1 parent 21b3fdc commit 787bfb8
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using FluentAssertions;
using System;
using Xunit;
// ReSharper disable All

namespace ExtendedXmlSerializer.Tests.ReportedIssues
{
Expand Down Expand Up @@ -33,9 +34,11 @@ public void Verify()

class Test
{
public DateTime Date1 { get; set; } = DateTime.Now; // Formatted OK
public DateTime? Date2 { get; set; } = null; // Is not emitted = OK
public DateTime? Date3 { get; set; } = DateTime.Now; // Completety ignores configured formatting
readonly static DateTime Now = new DateTime(2020, 11, 23);

public DateTime Date1 { get; set; } = Now; // Formatted OK
public DateTime? Date2 { get; set; } = null; // Is not emitted = OK
public DateTime? Date3 { get; set; } = Now; // Completety ignores configured formatting
}
}
}

0 comments on commit 787bfb8

Please sign in to comment.