Exemple #1
0
        [Test] public void Manualy_Git_Commit_NewUsers()
        {
            var head1 = nGit.head();

            nGit.assert_Is_Not_Null();
            tmFileStorage.path_UserData().isGitRepository()
            .assert_Is_True();
            head1.assert_Not_Null();

            var tmUser      = userData.newUser().tmUser();
            var userXmlFile = tmFileStorage.user_XmlFile_Location(tmUser).assert_File_Exists();
            var untracked   = nGit.status_Raw().untracked();

            untracked.assert_Size_Is(1)
            .first().assert_Equal_To(@"Users/{0}".format(userXmlFile.fileName()));

            nGit.add_and_Commit_using_Status();

            nGit.status_Raw().untracked().assert_Size_Is(0);
            nGit.head().assert_Not_Null()
            .assert_Is_Not(head1);
        }