public void LoadRemotes_should_not_populate_remotes_if_none() { _module.GetRemotes().Returns(x => Enumerable.Empty <string>()); _controller.LoadRemotes(true); _controller.Remotes.Count.Should().Be(0); _module.Received(1).GetRemotes(); _module.DidNotReceive().GetSetting(Arg.Any <string>()); _module.DidNotReceive().GetSettings(Arg.Any <string>()); }
public void UnlockIndex_should_only_delete_working_folder_lock_if_requested() { _manager.UnlockIndex(false); _module.DidNotReceive().GetSubmodulesLocalPaths(); }