File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -116,12 +116,33 @@ private static void AssertInitializedRepository(Repository repo)
116
116
}
117
117
118
118
[ Test ]
119
- public void CanOpenRepoWithFullPath ( )
119
+ public void CanOpenBareRepositoryThroughAFullPathToTheGitDir ( )
120
120
{
121
121
string path = Path . GetFullPath ( BareTestRepoPath ) ;
122
122
using ( var repo = new Repository ( path ) )
123
123
{
124
124
repo . ShouldNotBeNull ( ) ;
125
+ repo . Info . WorkingDirectory . ShouldBeNull ( ) ;
126
+ }
127
+ }
128
+
129
+ [ Test ]
130
+ public void CanOpenStandardRepositoryThroughAWorkingDirPath ( )
131
+ {
132
+ using ( var repo = new Repository ( StandardTestRepoWorkingDirPath ) )
133
+ {
134
+ repo . ShouldNotBeNull ( ) ;
135
+ repo . Info . WorkingDirectory . ShouldNotBeNull ( ) ;
136
+ }
137
+ }
138
+
139
+ [ Test ]
140
+ public void OpeningStandardRepositoryThroughTheGitDirGuessesTheWorkingDirPath ( )
141
+ {
142
+ using ( var repo = new Repository ( StandardTestRepoPath ) )
143
+ {
144
+ repo . ShouldNotBeNull ( ) ;
145
+ repo . Info . WorkingDirectory . ShouldNotBeNull ( ) ;
125
146
}
126
147
}
127
148
You can’t perform that action at this time.
0 commit comments