mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-22 14:28:47 +00:00
fix(tests): add test to fix coverage on DateOnly.Deconstruct
This commit is contained in:
parent
6750f0e3db
commit
f679ec294e
@ -39,6 +39,18 @@ internal class DateOnlyTests
|
|||||||
Assert.That(age, Is.EqualTo(18));
|
Assert.That(age, Is.EqualTo(18));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
public void Deconstruct_ShouldDeconstruct_GivenDateOnly()
|
||||||
|
{
|
||||||
|
var date = new DateOnly(2017, 12, 31);
|
||||||
|
|
||||||
|
date.Deconstruct(out int year, out int month, out int day);
|
||||||
|
|
||||||
|
Assert.That(year, Is.EqualTo(2017));
|
||||||
|
Assert.That(month, Is.EqualTo(12));
|
||||||
|
Assert.That(day, Is.EqualTo(31));
|
||||||
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void Deconstruct_ShouldDeconstructToTuple_GivenDateOnly()
|
public void Deconstruct_ShouldDeconstructToTuple_GivenDateOnly()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user