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
// Dependencies: NUnit | |
// Remember: copy excel file to output directory | |
public class ExcelBasedTests | |
{ | |
[Test, TestCaseSource(typeof(TestData), nameof(TestData.GetPeriodStartDateCases))] | |
public void RegisterUserTest(PeriodStartDateModel input) | |
{ | |
input.ColumnA.ShouldNotBeNullOrEmpty(); | |
input.ColumnB.ShouldNotBeNullOrEmpty(); |
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
public class ActiveDirectoryService | |
{ | |
private readonly NetworkCredential credentials; | |
public ActiveDirectoryService(NetworkCredential credentials) | |
{ | |
this.credentials = credentials; | |
} | |
public GetUserByResponse GetUserBy(string username) |
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
public class CodeGenTests | |
{ | |
[NUnit.Framework.Test] | |
public void ShouldDebugSources() | |
{ | |
var code = | |
@"namespace Debuggable | |
{ | |
public class HelloWorld | |
{ |
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
public static class TestExtensions | |
{ | |
private static readonly JsonSerializerOptions JsonSerializerOptions = new JsonSerializerOptions() | |
{ | |
WriteIndented = true, | |
}; | |
public static void ToConsole(this object? o) | |
{ | |
if (o is null) |