public void least_method_with_data() { MenuItemState.Least(MenuItemState.Available).ShouldEqual(MenuItemState.Available); MenuItemState.Least(MenuItemState.Hidden).ShouldEqual(MenuItemState.Hidden); MenuItemState.Least(MenuItemState.Disabled).ShouldEqual(MenuItemState.Disabled); MenuItemState.Least(MenuItemState.Hidden, MenuItemState.Available).ShouldEqual(MenuItemState.Hidden); MenuItemState.Least(MenuItemState.Hidden, MenuItemState.Available, MenuItemState.Disabled).ShouldEqual(MenuItemState.Hidden); MenuItemState.Least(MenuItemState.Disabled, MenuItemState.Available).ShouldEqual(MenuItemState.Disabled); MenuItemState.Least(MenuItemState.Hidden, MenuItemState.Disabled).ShouldEqual(MenuItemState.Hidden); }
public void least_method_empty_is_available() { MenuItemState.Least().ShouldEqual(MenuItemState.Available); }