示例#1
0
 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"));
 }
示例#2
0
 public void GetRepositoriesToList_NoRepositoriesKnown_GivesUsb()
 {
     _synchronizer.ExtraRepositorySources.Clear();
     _model = new SyncControlModel(_project, SyncUIFeatures.Advanced, null);
     _model.AddMessagesDisplay(_progress);
     Assert.AreEqual(1, _model.GetRepositoriesToList().Count);
 }
示例#3
0
 public void InitiallyHasUsbTarget()
 {
     Assert.IsNotNull(_model.GetRepositoriesToList()[0].URI == "UsbKey");
     // Assert.IsNotNull(_model.GetRepositoriesToList().Any(r => r.URI == "UsbKey"));
 }
示例#4
0
 public void InitiallyHasUsbTarget()
 {
     Assert.That(_model.GetRepositoriesToList()[0].URI, Is.EqualTo("UsbKey"));
 }