-
-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0ebf92a
commit 987fc2b
Showing
8 changed files
with
37 additions
and
97 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,9 @@ | ||
namespace VerifyTests; | ||
|
||
public readonly struct FilePair | ||
public readonly struct FilePair(string extension, string receivedPath, string verifiedPath) | ||
{ | ||
public string Extension { get; } | ||
public string ReceivedPath { get; } | ||
public string VerifiedPath { get; } | ||
public bool IsText { get; } | ||
|
||
public FilePair(string extension, string receivedPath, string verifiedPath) | ||
{ | ||
Extension = extension; | ||
ReceivedPath = receivedPath; | ||
VerifiedPath = verifiedPath; | ||
IsText = FileExtensions.IsText(extension); | ||
} | ||
public string Extension { get; } = extension; | ||
public string ReceivedPath { get; } = receivedPath; | ||
public string VerifiedPath { get; } = verifiedPath; | ||
public bool IsText { get; } = FileExtensions.IsText(extension); | ||
} |
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 |
---|---|---|
@@ -1,11 +1,5 @@ | ||
class FrameworkNameVersion | ||
class FrameworkNameVersion(string name, string nameAndVersion) | ||
{ | ||
public string Name { get; } | ||
public string NameAndVersion { get; } | ||
|
||
public FrameworkNameVersion(string name, string nameAndVersion) | ||
{ | ||
Name = name; | ||
NameAndVersion = nameAndVersion; | ||
} | ||
public string Name { get; } = name; | ||
public string NameAndVersion { get; } = nameAndVersion; | ||
} |
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 |
---|---|---|
@@ -1,15 +1,7 @@ | ||
readonly struct EqualityResult | ||
readonly struct EqualityResult(Equality equality, string? message, StringBuilder? receivedText, StringBuilder? verifiedText) | ||
{ | ||
public Equality Equality { get; } | ||
public string? Message { get; } | ||
public StringBuilder? ReceivedText { get; } | ||
public StringBuilder? VerifiedText { get; } | ||
|
||
public EqualityResult(Equality equality, string? message, StringBuilder? receivedText, StringBuilder? verifiedText) | ||
{ | ||
Equality = equality; | ||
Message = message; | ||
ReceivedText = receivedText; | ||
VerifiedText = verifiedText; | ||
} | ||
public Equality Equality { get; } = equality; | ||
public string? Message { get; } = message; | ||
public StringBuilder? ReceivedText { get; } = receivedText; | ||
public StringBuilder? VerifiedText { get; } = verifiedText; | ||
} |
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 |
---|---|---|
@@ -1,11 +1,5 @@ | ||
readonly struct NewResult | ||
readonly struct NewResult(FilePair file, StringBuilder? receivedText) | ||
{ | ||
public FilePair File { get; } | ||
public StringBuilder? ReceivedText { get; } | ||
|
||
public NewResult(FilePair file, StringBuilder? receivedText) | ||
{ | ||
File = file; | ||
ReceivedText = receivedText; | ||
} | ||
public FilePair File { get; } = file; | ||
public StringBuilder? ReceivedText { get; } = receivedText; | ||
} |
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 |
---|---|---|
@@ -1,15 +1,7 @@ | ||
readonly struct NotEqualResult | ||
readonly struct NotEqualResult(FilePair file, string? message, StringBuilder? receivedText, StringBuilder? verifiedText) | ||
{ | ||
public FilePair File { get; } | ||
public string? Message { get; } | ||
public StringBuilder? ReceivedText { get; } | ||
public StringBuilder? VerifiedText { get; } | ||
|
||
public NotEqualResult(FilePair file, string? message, StringBuilder? receivedText, StringBuilder? verifiedText) | ||
{ | ||
File = file; | ||
Message = message; | ||
ReceivedText = receivedText; | ||
VerifiedText = verifiedText; | ||
} | ||
public FilePair File { get; } = file; | ||
public string? Message { get; } = message; | ||
public StringBuilder? ReceivedText { get; } = receivedText; | ||
public StringBuilder? VerifiedText { get; } = verifiedText; | ||
} |