Skip to content

Commit

Permalink
Added "Inventory sample - passes.pbix" test suite.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nat Van Gulck authored and Nat Van Gulck committed Nov 9, 2023
1 parent d831484 commit 10f5315
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
Binary file not shown.
3 changes: 3 additions & 0 deletions PBIXInspectorTests/PBIXInspectorTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@
<None Update="Files\Inventory sample - fails.pbix">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Files\Inventory sample - passes.pbix">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Files\Inventory sample.pbix">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
Expand Down
17 changes: 17 additions & 0 deletions PBIXInspectorTests/SuiteRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,23 @@ public void RunPbipTest(TestResult testResult)
}
#endregion

#region BasePassSuite
public static IEnumerable<TestCaseData> BasePassPBIXSuite()
{
string PBIXFilePath = @"Files\Inventory sample - passes.pbix";
string RulesFilePath = @"Files\Base-rules.json";

Console.WriteLine("Running base pass PBIX suite...");
return Suite(PBIXFilePath, RulesFilePath);
}

[TestCaseSource(nameof(BasePassPBIXSuite))]
public void RunBasePassPBIX(TestResult testResult)
{
Assert.True(testResult.Pass, testResult.Message);
}
#endregion

#region BaseFailSuite
public static IEnumerable<TestCaseData> BaseFailPBIXSuite()
{
Expand Down

0 comments on commit 10f5315

Please sign in to comment.