-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Serialisation of recent files [skip ci]
- Loading branch information
1 parent
fd88d59
commit c72b6fe
Showing
7 changed files
with
89 additions
and
32 deletions.
There are no files selected for viewing
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
25 changes: 25 additions & 0 deletions
25
Source/TailBlazer.Fixtures/RecentFilesToStateConverterFixture.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,25 @@ | ||
using System.IO; | ||
using TailBlazer.Domain.FileHandling; | ||
using Xunit; | ||
|
||
namespace TailBlazer.Fixtures | ||
{ | ||
public class RecentFilesToStateConverterFixture | ||
{ | ||
[Fact] | ||
public void ConvertFiles() | ||
{ | ||
|
||
var files = new[] | ||
{ | ||
new RecentFile(new FileInfo(@"C:\\File1.txt")), | ||
new RecentFile(new FileInfo(@"C:\\File2.txt")), | ||
}; | ||
|
||
var converter = new RecentFilesToStateConverter(); | ||
|
||
var converted = converter.Convert(files); | ||
|
||
} | ||
} | ||
} |
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