diff options
author | Keith Dahlby <dahlbyk@gmail.com> | 2013-10-23 19:14:14 +0400 |
---|---|---|
committer | Keith Dahlby <dahlbyk@gmail.com> | 2013-11-03 21:09:35 +0400 |
commit | e0277392885545a2ca1cb2667c4ff84243d091fa (patch) | |
tree | e33ffdeb80d78bebd529b7b8ff6abd05168725e4 /LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs | |
parent | 71090d33681029b4c88cf43b8e27b2783ecccefc (diff) |
Ensure Blob.ContentStream() has Length
Diffstat (limited to 'LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs')
-rw-r--r-- | LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs b/LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs index 0c8dbbc8..c0e5ecdf 100644 --- a/LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs +++ b/LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs @@ -81,6 +81,14 @@ namespace LibGit2Sharp.Tests.TestHelpers return !isInsensitive; } + // Should match LibGit2Sharp.Core.NativeMethods.IsRunningOnLinux() + protected static bool IsRunningOnLinux() + { + // see http://mono-project.com/FAQ%3a_Technical#Mono_Platforms + var p = (int)Environment.OSVersion.Platform; + return (p == 4) || (p == 6) || (p == 128); + } + protected void CreateCorruptedDeadBeefHead(string repoPath) { const string deadbeef = "deadbeef"; |