Skip to content

Commit

Permalink
Merge pull request #2917 from AdmiringWorm/unit-tests-fix
Browse files Browse the repository at this point in the history
(#508) Fix unit tests for new dependency handling
  • Loading branch information
gep13 authored Nov 25, 2022
2 parents 5c65d89 + 0086e22 commit 305b546
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3150,13 +3150,13 @@ public void should_not_upgrade_the_exact_version_dependency()
}
}

[Fact, Broken]
[Fact]
public void should_contain_a_message_that_it_was_unable_to_install_any_packages()
{
bool expectedMessage = false;
foreach (var message in MockLogger.MessagesFor(LogLevel.Warn).or_empty_list_if_null())
{
if (message.Contains("installed 0/3")) expectedMessage = true;
if (message.Contains("installed 0/1")) expectedMessage = true;
}

expectedMessage.ShouldBeTrue();
Expand Down Expand Up @@ -3252,13 +3252,13 @@ public void should_not_downgrade_the_exact_version_dependency()
}
}

[Fact, Broken]
[Fact]
public void should_contain_a_message_that_it_was_unable_to_install_any_packages()
{
bool expectedMessage = false;
foreach (var message in MockLogger.MessagesFor(LogLevel.Warn).or_empty_list_if_null())
{
if (message.Contains("installed 0/3")) expectedMessage = true;
if (message.Contains("installed 0/1")) expectedMessage = true;
}

expectedMessage.ShouldBeTrue();
Expand Down

0 comments on commit 305b546

Please sign in to comment.