public void negative_test_by_key_alone() { var key = new NavigationKey("something"); var matcher = new ByName("else"); matcher.Matches(key).ShouldBeFalse(); }
public void matches_by_key_alone() { var key = new NavigationKey("something"); var matcher = new ByName("something"); matcher.Matches(key).ShouldBeTrue(); }
public void negative_test_by_localization_key() { var key = new NavigationKey("something"); var matcher = new ByName("OtherKey:something"); matcher.Matches(key).ShouldBeFalse(); }
public void format_description() { var key = new NavigationKey("something"); new AddAfter().FormatDescription("parent", key) .ShouldBe("Insert '{0}' after 'parent'".ToFormat(key.ToLocalizationKey())); }
public void format_description() { var key = new NavigationKey("something"); new AddChild().FormatDescription("parent", key) .ShouldBe("Add '{0}' to menu 'parent'".ToFormat(key.ToLocalizationKey())); }