public void CustomDescriptionTest() { Assert.Equal("Classes " + CustomDescription, _customDescriptionTestRule1.Description); Assert.Equal("Classes " + CustomDescription, _customDescriptionTestRule1.ToString()); Assert.Equal(CustomDescription + " and are protected " + CustomDescription, _customDescriptionTestRule2.Description); Assert.Equal(CustomDescription + " and are protected " + CustomDescription, _customDescriptionTestRule2.ToString()); Assert.Equal("Classes " + CustomDescription + " and Attributes " + CustomDescription, _combinedCustomDescriptionTestRule.Description); Assert.Equal("Classes " + CustomDescription + " and Attributes " + CustomDescription, _combinedCustomDescriptionTestRule.ToString()); }
public void DescriptionTest() { Assert.Equal(ExpectedDescription, _descriptionTestRule.Description); Assert.Equal(ExpectedDescription, _descriptionTestRule.ToString()); }