Skip to content

Commit

Permalink
update Xunit.StaFact to include bugfixes (#3276)
Browse files Browse the repository at this point in the history
  • Loading branch information
weltkante authored May 26, 2020
1 parent f881902 commit e9d6ccf
Showing 10 changed files with 129 additions and 118 deletions.
2 changes: 1 addition & 1 deletion eng/Versions.props
Original file line number Diff line number Diff line change
@@ -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>
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ namespace Microsoft.VisualBasic.MyServices.Tests
{
public class ClipboardProxyTests
{
[StaFact]
[WinFormsFact]
public void Clear()
{
var clipboard = (new Computer()).Clipboard;
@@ -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;
@@ -46,7 +46,7 @@ public void Image()
clipboard.SetImage(image);
}

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

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

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

[StaFact]
[WinFormsFact]
public void DataObject()
{
var clipboard = (new Computer()).Clipboard;
Original file line number Diff line number Diff line change
@@ -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");
Original file line number Diff line number Diff line change
@@ -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",
Loading

0 comments on commit e9d6ccf

Please sign in to comment.