Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/dotnet/UnitTests/TemplateTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public void CreateAndBuildProjectTemplate (TemplateInfo info)
rv = DotNet.AssertBuild (proj, properties);

// There should still not be any warnings
warnings = BinLog.GetBuildLogWarnings (rv.BinLogPath).Select (v => v.Message);
warnings = BinLog.GetBuildLogWarnings (rv.BinLogPath).FilterWarnings (info.Platform).Select (v => v.Message);
Assert.That (warnings, Is.Empty, $"Build warnings (2):\n\t{string.Join ("\n\t", warnings)}");

var appPath = GetAppPath (proj, platform, runtimeIdentifiers);
Expand Down Expand Up @@ -280,7 +280,7 @@ bool IsMatching (TemplateLanguage lang, TemplateLanguage? value)
var proj = Path.Combine (outputDir, $"{info.Template}.{language.AsFileExtension ()}");
var properties = GetDefaultProperties ();
var rv = DotNet.AssertBuild (proj, properties);
var warnings = BinLog.GetBuildLogWarnings (rv.BinLogPath).Select (v => v.Message);
var warnings = BinLog.GetBuildLogWarnings (rv.BinLogPath).FilterWarnings (platform).Select (v => v.Message);
Assert.That (warnings, Is.Empty, $"Build warnings:\n\t{string.Join ("\n\t", warnings)}");

if (info.Execute) {
Expand All @@ -295,7 +295,7 @@ bool IsMatching (TemplateLanguage lang, TemplateLanguage? value)
rv = DotNet.AssertBuild (proj, properties);

// There should still not be any warnings
warnings = BinLog.GetBuildLogWarnings (rv.BinLogPath).Select (v => v.Message);
warnings = BinLog.GetBuildLogWarnings (rv.BinLogPath).FilterWarnings (platform).Select (v => v.Message);
Assert.That (warnings, Is.Empty, $"Build warnings (2):\n\t{string.Join ("\n\t", warnings)}");

var appPath = GetAppPath (proj, platform, runtimeIdentifiers);
Expand Down
Loading