Skip to content

Commit

Permalink
Differet assertion on non windows
Browse files Browse the repository at this point in the history
  • Loading branch information
William Li committed Jun 29, 2020
1 parent 6fa2a46 commit c0b1c0d
Showing 1 changed file with 16 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using System.IO;
using FluentAssertions;
using Xunit;
Expand Down Expand Up @@ -166,6 +167,11 @@ public void Given_KnownFrameworkReferences_with_RuntimeCopyLocal_It_resolves_Fra
}
};

if (Environment.OSVersion.Platform != PlatformID.Win32NT)
{
task.Execute().Should().BeFalse("IsWindowsOnly=true");
return;
}
task.Execute().Should().BeTrue();

task.PackagesToDownload.Length.Should().Be(1);
Expand Down Expand Up @@ -241,10 +247,16 @@ public void It_resolves_self_contained_FrameworkReferences_to_download()
}),
}
};
if (Environment.OSVersion.Platform == PlatformID.Win32NT)
{
task.Execute().Should().BeTrue();

task.Execute().Should().BeTrue();

task.PackagesToDownload.Length.Should().Be(2);
task.PackagesToDownload.Length.Should().Be(2);
}
else
{
task.Execute().Should().BeFalse("IsWindowsOnly=true");
}
}
}
}

0 comments on commit c0b1c0d

Please sign in to comment.