mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Add DatStatistics constructor tests
This commit is contained in:
@@ -10,7 +10,25 @@ namespace SabreTools.DatFiles.Test
|
|||||||
{
|
{
|
||||||
#region Constructor
|
#region Constructor
|
||||||
|
|
||||||
// TODO: Write Constructor tests
|
[Fact]
|
||||||
|
public void DefaultConstructorTest()
|
||||||
|
{
|
||||||
|
var stats = new DatStatistics();
|
||||||
|
|
||||||
|
Assert.Null(stats.DisplayName);
|
||||||
|
Assert.Equal(0, stats.MachineCount);
|
||||||
|
Assert.False(stats.IsDirectory);
|
||||||
|
}
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public void NamedConstructorTest()
|
||||||
|
{
|
||||||
|
var stats = new DatStatistics("name", isDirectory: true);
|
||||||
|
|
||||||
|
Assert.Equal("name", stats.DisplayName);
|
||||||
|
Assert.Equal(0, stats.MachineCount);
|
||||||
|
Assert.True(stats.IsDirectory);
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user