-
Notifications
You must be signed in to change notification settings - Fork 562
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #811 from Rob-Hague/at2
Convert acceptance tests to a test project
- Loading branch information
Showing
55 changed files
with
894 additions
and
1,929 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[*.cs] | ||
|
||
# NUnit2003: Consider using Assert.That(expr, Is.True) instead of Assert.IsTrue(expr) | ||
dotnet_diagnostic.NUnit2003.severity = silent | ||
|
||
# NUnit2005: Consider using Assert.That(actual, Is.EqualTo(expected)) instead of Assert.AreEqual(expected, actual) | ||
dotnet_diagnostic.NUnit2005.severity = silent | ||
|
||
# NUnit2017: Consider using Assert.That(expr, Is.Null) instead of Assert.IsNull(expr) | ||
dotnet_diagnostic.NUnit2017.severity = silent | ||
|
||
# NUnit2019: Consider using Assert.That(expr, Is.Not.Null) instead of Assert.IsNotNull(expr) | ||
dotnet_diagnostic.NUnit2019.severity = silent |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,27 @@ | ||
using NUnit.Framework; | ||
using QuickFix; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Linq; | ||
|
||
namespace AcceptanceTest; | ||
|
||
public class Fix40 : TestBase | ||
{ | ||
private const string DefinitionsBaseDirPath = "definitions/server/fix40"; | ||
|
||
protected override SessionSettings Settings => new(@"cfg/at_40.cfg"); | ||
|
||
[TestCaseSource(nameof(Definitions))] | ||
public void Fix40Test(string definitionFileName) | ||
{ | ||
RunTest(Path.Combine(DefinitionsBaseDirPath, definitionFileName)); | ||
} | ||
|
||
private static IEnumerable<string> Definitions() | ||
{ | ||
return Directory.EnumerateFiles(DefinitionsBaseDirPath, "*.def") | ||
.Select(f => Path.GetFileName(f)!) | ||
.OrderBy(s => s); | ||
} | ||
} |
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,27 @@ | ||
using NUnit.Framework; | ||
using QuickFix; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Linq; | ||
|
||
namespace AcceptanceTest; | ||
|
||
public class Fix41 : TestBase | ||
{ | ||
private const string DefinitionsBaseDirPath = "definitions/server/fix41"; | ||
|
||
protected override SessionSettings Settings => new(@"cfg/at_41.cfg"); | ||
|
||
[TestCaseSource(nameof(Definitions))] | ||
public void Fix41Test(string definitionFileName) | ||
{ | ||
RunTest(Path.Combine(DefinitionsBaseDirPath, definitionFileName)); | ||
} | ||
|
||
private static IEnumerable<string> Definitions() | ||
{ | ||
return Directory.EnumerateFiles(DefinitionsBaseDirPath, "*.def") | ||
.Select(f => Path.GetFileName(f)!) | ||
.OrderBy(s => s); | ||
} | ||
} |
Oops, something went wrong.