@@ -68,13 +68,13 @@ public void ShouldOutputFormatWithEnvironmentVariablesTests(string format, strin
68
68
output . ShouldBeEquivalentTo ( expectedValue ) ;
69
69
}
70
70
71
- [ TestCase ( "Major" , "1 " ) ]
72
- [ TestCase ( "MajorMinorPatch" , "1.1.0" ) ]
73
- [ TestCase ( "SemVer" , "1.1.0-foo.1" ) ]
74
- [ TestCase ( "PreReleaseTagWithDash" , "-foo.1" ) ]
75
- [ TestCase ( "AssemblySemFileVer" , "1.1.0.0" ) ]
76
- [ TestCase ( "BranchName" , "feature/foo" ) ]
77
- [ TestCase ( "FullSemVer" , "1.1.0-foo.1+1" ) ]
71
+ [ TestCase ( "Major" , "'1' " ) ]
72
+ [ TestCase ( "MajorMinorPatch" , "' 1.1.0' " ) ]
73
+ [ TestCase ( "SemVer" , "' 1.1.0-foo.1' " ) ]
74
+ [ TestCase ( "PreReleaseTagWithDash" , "' -foo.1' " ) ]
75
+ [ TestCase ( "AssemblySemFileVer" , "' 1.1.0.0' " ) ]
76
+ [ TestCase ( "BranchName" , "' feature/foo' " ) ]
77
+ [ TestCase ( "FullSemVer" , "' 1.1.0-foo.1+1' " ) ]
78
78
public void ShouldOutputDotEnvEntries ( string variableName , string expectedValue )
79
79
{
80
80
var fixture = CreateTestRepository ( ) ;
@@ -127,13 +127,13 @@ public void ShouldOutputAllCalculatedVariablesAsDotEnvEntries()
127
127
Assert . That ( totalOutputLines , Is . EqualTo ( versionVariables . Count ( ) ) ) ;
128
128
}
129
129
130
- [ TestCase ( "Major" , "0 " ) ]
131
- [ TestCase ( "MajorMinorPatch" , "0.0.1" ) ]
132
- [ TestCase ( "SemVer" , "0.0.1-1" ) ]
130
+ [ TestCase ( "Major" , "'0' " ) ]
131
+ [ TestCase ( "MajorMinorPatch" , "' 0.0.1' " ) ]
132
+ [ TestCase ( "SemVer" , "' 0.0.1-1' " ) ]
133
133
[ TestCase ( "BuildMetaData" , "''" ) ]
134
- [ TestCase ( "AssemblySemVer" , "0.0.1.0" ) ]
135
- [ TestCase ( "PreReleaseTagWithDash" , "-1 " ) ]
136
- [ TestCase ( "BranchName" , "main" ) ]
134
+ [ TestCase ( "AssemblySemVer" , "' 0.0.1.0' " ) ]
135
+ [ TestCase ( "PreReleaseTagWithDash" , "'-1' " ) ]
136
+ [ TestCase ( "BranchName" , "' main' " ) ]
137
137
[ TestCase ( "PreReleaseLabel" , "''" ) ]
138
138
[ TestCase ( "PreReleaseLabelWithDash" , "''" ) ]
139
139
public void ShouldOutputAllDotEnvEntriesEvenForMinimalRepositories ( string variableName , string expectedValue )
0 commit comments