Skip to content

Commit

Permalink
Add test for IsChromiumContent.ToString()
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveTryon committed Jul 26, 2023
1 parent f0a849a commit e366517
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Rules/PropertyConditions/ElementGroups.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ static class ElementGroups
public static Condition XAMLTextInEdit = XAML & Text & Parent(Edit);
public static Condition WinFormsEdit = Edit & WinForms;
public static Condition IsChromiumDocument = Chrome & Document;
public static Condition IsChromiumContent = IsChromiumDocument | AnyAncestor(IsChromiumDocument)[ConditionDescriptions.IsChromiumContent];
public static Condition IsChromiumContent = (IsChromiumDocument | AnyAncestor(IsChromiumDocument))[ConditionDescriptions.IsChromiumContent];
public static Condition AllowSameNameAndControlType = CreateAllowSameNameAndControlTypeCondition();

private static Condition CreateMinMaxCloseButtonCondition()
Expand Down
2 changes: 2 additions & 0 deletions src/RulesTest/PropertyConditions/ElementGroupsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,8 @@ public void IsChromiumContent_MatchExpected()
e.Parent = null;
Assert.IsTrue(ElementGroups.IsChromiumContent.Matches(e));
} // using

Assert.AreEqual("IsChromiumContent", ElementGroups.IsChromiumContent.ToString());
}
} // class
} // namespace

0 comments on commit e366517

Please sign in to comment.