Skip to content
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

update Xunit.StaFact to include bugfixes #3276

Merged
merged 5 commits into from
May 26, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion eng/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<XUnitRunnerConsoleVersion>$(XUnitVersion)</XUnitRunnerConsoleVersion>
<XUnitRunnerVisualStudioVersion>$(XUnitVersion)</XUnitRunnerVisualStudioVersion>
<XUnitExtensibilityExecutionVersion>$(XUnitVersion)</XUnitExtensibilityExecutionVersion>
<XUnitStaFactPackageVersion>0.3.18</XUnitStaFactPackageVersion>
<XUnitStaFactPackageVersion>1.0.33-beta</XUnitStaFactPackageVersion>
</PropertyGroup>
<!-- Code Coverage -->
<PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Microsoft.VisualBasic.MyServices.Tests
{
public class ClipboardProxyTests
{
[StaFact]
[WinFormsFact]
public void Clear()
{
var clipboard = (new Computer()).Clipboard;
Expand All @@ -24,19 +24,19 @@ public void Clear()
Assert.False(System.Windows.Forms.Clipboard.ContainsText());
}

[StaFact]
[WinFormsFact]
public void Text()
{
var clipboard = (new Computer()).Clipboard;
var text = GetUniqueText();
clipboard.SetText(text, TextDataFormat.UnicodeText);
Assert.Equal(System.Windows.Forms.Clipboard.ContainsText(), clipboard.ContainsText());
Assert.Equal(System.Windows.Forms.Clipboard.GetText(), clipboard.GetText());
Assert.Equal(System.Windows.Forms.Clipboard.GetText(TextDataFormat.UnicodeText), clipboard.GetText(TextDataFormat.UnicodeText));
clipboard.SetText(text, TextDataFormat.UnicodeText);
Assert.Equal(text, clipboard.GetText(TextDataFormat.UnicodeText));
}

[StaFact]
[WinFormsFact]
public void Image()
{
var clipboard = (new Computer()).Clipboard;
Expand All @@ -46,7 +46,7 @@ public void Image()
clipboard.SetImage(image);
}

[StaFact]
[WinFormsFact]
public void Audio()
{
var clipboard = (new Computer()).Clipboard;
Expand All @@ -57,7 +57,7 @@ public void Audio()
// Public Sub SetAudio(ByVal audioStream As Stream)
}

[StaFact]
[WinFormsFact]
public void FileDropList()
{
var clipboard = (new Computer()).Clipboard;
Expand All @@ -67,7 +67,7 @@ public void FileDropList()
// Public Sub SetFileDropList(ByVal filePaths As StringCollection)
}

[StaFact]
[WinFormsFact]
public void Data()
{
var clipboard = (new Computer()).Clipboard;
Expand All @@ -77,7 +77,7 @@ public void Data()
clipboard.SetData(DataFormats.UnicodeText, data);
}

[StaFact]
[WinFormsFact]
public void DataObject()
{
var clipboard = (new Computer()).Clipboard;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ namespace System.Windows.Forms.Tests.AccessibleObjects
{
public class CheckedListBoxAccessibleObjectTests : IClassFixture<ThreadExceptionFixture>
{
[StaFact]
[WinFormsFact]
public void CheckedListBoxAccessibleObject_CheckBounds()
{
CheckedListBox checkedListBox = new CheckedListBox();
using CheckedListBox checkedListBox = new CheckedListBox();
checkedListBox.Size = new Size(120, 100);
checkedListBox.Items.Add("a");
checkedListBox.Items.Add("b");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ namespace System.Windows.Forms.Tests.AccessibleObjects
{
public class ListBoxAccessibleObjectTests : IClassFixture<ThreadExceptionFixture>
{
[StaFact]
[WinFormsFact]
public void ListBoxAccessibleObjectTests_Ctor_Default()
{
ListBox listBox = new ListBox();
using ListBox listBox = new ListBox();
listBox.Items.AddRange(new object[] {
"a",
"b",
Expand Down
Loading