Skip to content

Commit

Permalink
Upddate assert message
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryxu-msft committed Feb 27, 2025
1 parent 4157118 commit 14c3be8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/modules/Hosts/Hosts.UITests/HostModuleTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,10 @@ public void TestTooManyHosts()
this.Find<TextBox>("Address").SetText("127.0.0.1");

this.Find<TextBox>("Hosts").SetText(validHosts);

Assert.IsTrue(this.Find<Button>("Add").Enabled, "Add button should be Enabled with validHosts");

this.Find<TextBox>("Hosts").SetText(inValidHosts);

Assert.IsFalse(this.Find<Button>("Add").Enabled, "Add button should be Enabled with validHosts");
Assert.IsFalse(this.Find<Button>("Add").Enabled, "Add button should be Disabled with inValidHosts");

this.Find<Button>("Cancel").Click();
}
Expand Down

0 comments on commit 14c3be8

Please sign in to comment.