public void GetRepositoriesToList_NoRepositoriesKnown_GivesUsb() { _synchronizer.ExtraRepositorySources.Clear(); _model = new SyncControlModel(_project, SyncUIFeatures.Advanced, null); _model.AddMessagesDisplay(_progress); Assert.That(_model.GetRepositoriesToList().Count, Is.EqualTo(1)); Assert.That(_model.GetRepositoriesToList()[0].URI, Is.EqualTo("UsbKey")); }
public void GetRepositoriesToList_NoRepositoriesKnown_GivesUsb() { _synchronizer.ExtraRepositorySources.Clear(); _model = new SyncControlModel(_project, SyncUIFeatures.Advanced, null); _model.AddMessagesDisplay(_progress); Assert.AreEqual(1, _model.GetRepositoriesToList().Count); }
public void InitiallyHasUsbTarget() { Assert.IsNotNull(_model.GetRepositoriesToList()[0].URI == "UsbKey"); // Assert.IsNotNull(_model.GetRepositoriesToList().Any(r => r.URI == "UsbKey")); }
public void InitiallyHasUsbTarget() { Assert.That(_model.GetRepositoriesToList()[0].URI, Is.EqualTo("UsbKey")); }