Skip to content

Commit

Permalink
Merge pull request #4 from vladislav-karamfilov/master
Browse files Browse the repository at this point in the history
No more skipped unit tests
  • Loading branch information
NikolayIT authored Dec 25, 2019
2 parents 3ef0186 + 468020d commit 5cd86ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/RestrictedProcess.Tests/RestrictedProcess.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="Xunit.StaFact" Version="0.3.18" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace RestrictedProcess.Tests
{
using System;
using System.Diagnostics;
using System.Linq;
using System.Windows.Forms;
Expand Down Expand Up @@ -30,8 +29,7 @@ public static void Main()
Assert.True(result.Type == ProcessExecutionResultType.RunTimeError, "No exception is thrown!");
}

[Fact(Skip = "System.Threading.ThreadStateException : Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it.")]
[STAThread]
[StaFact]
public void RestrictedProcessShouldNotBeAbleToReadClipboard()
{
const string ReadClipboardSourceCode = @"using System;
Expand Down

0 comments on commit 5cd86ec

Please sign in to comment.