8000 Avoid reading and writing global state when loading native library by tmat · Pull Request #1563 · libgit2/libgit2sharp · GitHub
[go: up one dir, main page]

Skip to content

Avoid reading and writing global state when loading native library #1563

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Apr 17, 2018
Merged
Prev Previous commit
Next Next commit
Make test types internal
  • Loading branch information
tmat committed Apr 16, 2018
commit 8a10035c2cbd5ad635386c8675c2489f624f882d
< 8000 button type="button" class="btn-link color-fg-muted no-underline js-expand-full directional-expander tooltipped tooltipped-se" aria-label="Expand all" data-url="/libgit2/libgit2sharp/blob_expand/cc052a4b8040ee4cb3273f75942e437f87b05ecc?anchor=diff-ffdac36756bdc5e3895611f6e8c738f2355653dac78108d44a224d398b364326&context=pull_request&diff=unified&direction=full&mode=100644&path=LibGit2Sharp.Tests%2FTestHelpers%2FConditionalFactAttribute.cs&pull_request_id=181066406" >
6 changes: 3 additions & 3 deletions LibGit2Sharp.Tests/TestHelpers/ConditionalFactAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace LibGit2Sharp.Tests
{
public class ConditionalFactAttribute : FactAttribute
internal class ConditionalFactAttribute : FactAttribute
{
public ConditionalFactAttribute(params Type[] skipConditions)
{
Expand All @@ -22,13 +22,13 @@ public ConditionalFactAttribute(params Type[] skipConditions)
}
}

public abstract class ExecutionCondition
internal abstract class ExecutionCondition
{
public abstract bool ShouldSkip { get; }
public abstract string SkipReason { get; }
}

public class NetFramework : ExecutionCondition
internal class NetFramework : ExecutionCondition
{
public override bool ShouldSkip => !Platform.IsRunningOnNetFramework();
public override string SkipReason => ".NET Framework only test";
Expand Down
0