mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-22 19:48:46 +00:00
Compare commits
3 Commits
6750f0e3db
...
db3a80b6da
Author | SHA1 | Date | |
---|---|---|---|
db3a80b6da | |||
52c85f3498 | |||
f679ec294e |
2
.github/workflows/sonarcloud.yml
vendored
2
.github/workflows/sonarcloud.yml
vendored
@ -55,7 +55,7 @@ jobs:
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
shell: powershell
|
||||
run: |
|
||||
.\.sonar\scanner\dotnet-sonarscanner begin /k:"X10D" /o:"oliverbooth" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io"
|
||||
.\.sonar\scanner\dotnet-sonarscanner begin /k:"X10D" /o:"oliverbooth" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.dotcover.reportsPaths=dotCover.Output.html
|
||||
dotnet build --no-incremental
|
||||
dotnet dotcover test --dcReportType=HTML
|
||||
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
|
||||
|
@ -39,6 +39,18 @@ internal class DateOnlyTests
|
||||
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]
|
||||
public void Deconstruct_ShouldDeconstructToTuple_GivenDateOnly()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user