public void WhenMultipleFilesAreSelected_ContextMenuShouldNotShow() { AddAsCardContextMenu menu = new AddAsCardContextMenu(); var items = new[] { "blah.txt", "eh.txt" }; menu.CanShowMenu(items, "") .Should().BeFalse(); }
public void WhenASingleFileIsSelected_ContextMenuShouldShow() { AddAsCardContextMenu menu = new AddAsCardContextMenu(); var items = new[] { "blah.txt" }; menu.CanShowMenu(items, "") .Should().BeTrue(); }