@@ -44,7 +44,7 @@ private static void AssertValueInGlobalConfigFile(string regex)
44
44
}
45
45
46
46
[ Fact ]
47
- public void CanDeleteAnEntryFromTheLocalConfiguration ( )
47
+ public void CanUnsetAnEntryFromTheLocalConfiguration ( )
48
48
{
49
49
var path = BuildTemporaryCloneOfTestRepo ( StandardTestRepoPath ) ;
50
50
using ( var repo = new Repository ( path . RepositoryPath ) )
@@ -54,14 +54,14 @@ public void CanDeleteAnEntryFromTheLocalConfiguration()
54
54
repo . Config . Set ( "unittests.boolsetting" , true ) ;
55
55
Assert . True ( repo . Config . Get < bool > ( "unittests.boolsetting" , false ) ) ;
56
56
57
- repo . Config . Delete ( "unittests.boolsetting" ) ;
57
+ repo . Config . Unset ( "unittests.boolsetting" ) ;
58
58
59
59
Assert . False ( repo . Config . Get < bool > ( "unittests.boolsetting" , false ) ) ;
60
60
}
61
61
}
62
62
63
63
[ Fact ]
64
- public void CanDeleteAnEntryFromTheGlobalConfiguration ( )
64
+ public void CanUnsetAnEntryFromTheGlobalConfiguration ( )
65
65
{
66
66
SelfCleaningDirectory scd = BuildSelfCleaningDirectory ( ) ;
67
67
@@ -88,10 +88,10 @@ public void CanDeleteAnEntryFromTheGlobalConfiguration()
88
88
Assert . True ( repo . Config . HasGlobalConfig ) ;
89
89
Assert . Equal ( 42 , repo . Config . Get ( "Wow.Man-I-am-totally-global" , 1337 ) ) ;
90
90
91
- repo . Config . Delete ( "Wow.Man-I-am-totally-global" ) ;
91
+ repo . Config . Unset ( "Wow.Man-I-am-totally-global" ) ;
92
92
Assert . Equal ( 42 , repo . Config . Get ( "Wow.Man-I-am-totally-global" , 1337 ) ) ;
93
93
94
- repo . Config . Delete ( "Wow.Man-I-am-totally-global" , ConfigurationLevel . Global ) ;
94
+ repo . Config . Unset ( "Wow.Man-I-am-totally-global" , ConfigurationLevel . Global ) ;
95
95
Assert . Equal ( 1337 , repo . Config . Get ( "Wow.Man-I-am-totally-global" , 1337 ) ) ;
96
96
}
97
97
}
0 commit comments