Skip to content

Commit

Permalink
fixing tests broken in VS only (#1434)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamYoblick committed Jul 19, 2019
1 parent ac04265 commit e22814e
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
Expand Up @@ -2579,11 +2579,11 @@ public void Control_Text_Set_GetReturnsExpected(string value, string expected)
{
Text = value
};
Assert.Same(expected, control.Text);
Assert.Equal(expected, control.Text);

// Set same.
control.Text = value;
Assert.Same(expected, control.Text);
Assert.Equal(expected, control.Text);
}

[Theory]
Expand Down
@@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Expand Down Expand Up @@ -328,13 +328,13 @@ public void ComponentEditorPage_Text_Set_GetReturnsExpected(string value, string
{
Text = value
};
Assert.Same(expected, control.Text);
Assert.Same(expected, control.Title);
Assert.Equal(expected, control.Text);
Assert.Equal(expected, control.Title);

// Set same.
control.Text = value;
Assert.Same(expected, control.Text);
Assert.Same(expected, control.Title);
Assert.Equal(expected, control.Text);
Assert.Equal(expected, control.Title);
}

[Theory]
Expand Down
Expand Up @@ -289,11 +289,11 @@ public void Control_Text_Set_GetReturnsExpected(string value, string expected)
{
Text = value
};
Assert.Same(expected, control.Text);
Assert.Equal(expected, control.Text);

// Set same.
control.Text = value;
Assert.Same(expected, control.Text);
Assert.Equal(expected, control.Text);
}

[Theory]
Expand Down
@@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Expand Down Expand Up @@ -1054,11 +1054,11 @@ public void ScrollBar_Text_Set_GetReturnsExpected(string value, string expected)
{
Text = value
};
Assert.Same(expected, control.Text);
Assert.Equal(expected, control.Text);

// Set same.
control.Text = value;
Assert.Same(expected, control.Text);
Assert.Equal(expected, control.Text);
}

[Theory]
Expand Down
Expand Up @@ -54,7 +54,7 @@ public void TreeNodeCollection_Add_String_Success(string text, string expectedTe
Assert.Equal(-1, treeNode.StateImageIndex);
Assert.Empty(treeNode.StateImageKey);
Assert.Null(treeNode.Tag);
Assert.Same(expectedText, treeNode.Text);
Assert.Equal(expectedText, treeNode.Text);
Assert.Empty(treeNode.ToolTipText);
Assert.Same(treeView, treeNode.TreeView);
}
Expand Down
Expand Up @@ -87,7 +87,7 @@ public void TreeNode_Ctor_String(string text, string expectedText)
Assert.Equal(-1, treeNode.StateImageIndex);
Assert.Empty(treeNode.StateImageKey);
Assert.Null(treeNode.Tag);
Assert.Same(expectedText, treeNode.Text);
Assert.Equal(expectedText, treeNode.Text);
Assert.Empty(treeNode.ToolTipText);
Assert.Null(treeNode.TreeView);
}
Expand Down
Expand Up @@ -3842,11 +3842,11 @@ public void Text_Set_GetReturnsExpected(string value, string expected)
{
Text = value
};
Assert.Same(expected, treeView.Text);
Assert.Equal(expected, treeView.Text);

// Set same.
treeView.Text = value;
Assert.Same(expected, treeView.Text);
Assert.Equal(expected, treeView.Text);
}

[Fact]
Expand Down

0 comments on commit e22814e

Please sign in to comment.