Exemplo n.º 1
0
 public GitSyncActionServiceTest()
 {
     m_Group = CreateGroup();
     m_Service = new GitSyncActionService(m_Group);
 }
Exemplo n.º 2
0
        public void AddItems_stores_new_actions()
        {
            var action1 = SyncAction.CreateAddFileSyncAction("target1", SyncActionState.Active, 23,new FileReference("/path/to/file"));
            var action2 = SyncAction.CreateAddFileSyncAction("target2", SyncActionState.Active, 23, new FileReference("/path/to/some/Other/file"));

            m_Service.AddItems(action1, action2);

            var newService = new GitSyncActionService(m_Group);

            Assert.Equal(2, newService[SyncActionState.Active].Count());
            Assert.Single(newService[SyncActionState.Active, action1.Path]);
            Assert.Single(newService[SyncActionState.Active, action2.Path]);
        }