TEST(DefaultLabelNotLastInSwitchStatementRuleTest, PropertyTest) { DefaultLabelNotLastInSwitchStatementRule rule; EXPECT_EQ(3, rule.priority()); EXPECT_EQ("ill-placed default label in switch statement", rule.name()); EXPECT_EQ("MisplacedDefaultLabel", rule.identifier()); EXPECT_EQ("convention", rule.category()); }
TEST(DefaultLabelNotLastInSwitchStatementRuleTest, PropertyTest) { DefaultLabelNotLastInSwitchStatementRule rule; EXPECT_EQ(3, rule.priority()); EXPECT_EQ("default label not last in switch statement", rule.name()); }