-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved tests into the correct project, removed errant references, and …
…fixed bugs exposed by actually running the tests
- Loading branch information
Showing
12 changed files
with
50 additions
and
27 deletions.
There are no files selected for viewing
6 changes: 3 additions & 3 deletions
6
...versalDiveDataFormat/Models/BuiltTests.cs → ...DiveDataFormat.Tests/Models/BuiltTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/UniversalDiveDataFormat.Tests/Models/LaunchingDateTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System.Xml.Serialization; | ||
using Shouldly; | ||
using UniversalDiveDataFormat.ExtensionMethods; | ||
using UniversalDiveDataFormat.Models; | ||
|
||
namespace UniversalDiveDataFormat.Tests.Models; | ||
|
||
public class LaunchingDateTests | ||
{ | ||
private const string Xml = """ | ||
<launchingdate> | ||
<datetime>1943-06-14</datetime> | ||
</launchingdate> | ||
"""; | ||
|
||
[Fact] | ||
public void CanReadLaunchingDate() | ||
{ | ||
XmlSerializer serializer = new(typeof(LaunchingDate)); | ||
LaunchingDate launchingDate = serializer.Deserialize<LaunchingDate>(Xml); | ||
launchingDate.DateTime.ShouldBe(new(1943, 6, 14)); | ||
} | ||
} |
6 changes: 3 additions & 3 deletions
6
...t/Models/SetDiveComputerAlarmTimeTests.cs → ...s/Models/SetDiveComputerAlarmTimeTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
namespace UniversalDiveDataFormat.Services; | ||
|
||
public class UddfDeserializer | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters