Skip to content

Commit aaaf48e

Browse files
committed
nomono
1 parent 4b025e5 commit aaaf48e

File tree

4 files changed

+35
-32
lines changed

4 files changed

+35
-32
lines changed

src/GitVersionCore.Tests/AssemblyInfoFileUpdaterTests.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ public void Setup()
3737
[TestCase("cs")]
3838
[TestCase("fs")]
3939
[TestCase("vb")]
40-
[Category("NoMono")]
41-
[Description("Won't run on Mono due to source information not being available for ShouldMatchApproved.")]
40+
[Category(NoMono)]
41+
[Description(NoMonoDescription)]
4242
public void ShouldCreateAssemblyInfoFileWhenNotExistsAndEnsureAssemblyInfo(string fileExtension)
4343
{
4444
var workingDir = Path.GetTempPath();
@@ -55,8 +55,8 @@ public void ShouldCreateAssemblyInfoFileWhenNotExistsAndEnsureAssemblyInfo(strin
5555
[TestCase("cs")]
5656
[TestCase("fs")]
5757
[TestCase("vb")]
58-
[Category("NoMono")]
59-
[Description("Won't run on Mono due to source information not being available for ShouldMatchApproved.")]
58+
[Category(NoMono)]
59+
[Description(NoMonoDescription)]
6060
public void ShouldCreateAssemblyInfoFileAtPathWhenNotExistsAndEnsureAssemblyInfo(string fileExtension)
6161
{
6262
var workingDir = Path.GetTempPath();
@@ -73,8 +73,8 @@ public void ShouldCreateAssemblyInfoFileAtPathWhenNotExistsAndEnsureAssemblyInfo
7373
[TestCase("cs")]
7474
[TestCase("fs")]
7575
[TestCase("vb")]
76-
[Category("NoMono")]
77-
[Description("Won't run on Mono due to source information not being available for ShouldMatchApproved.")]
76+
[Category(NoMono)]
77+
[Description(NoMonoDescription)]
7878
public void ShouldCreateAssemblyInfoFilesAtPathWhenNotExistsAndEnsureAssemblyInfo(string fileExtension)
7979
{
8080
var workingDir = Path.GetTempPath();
@@ -164,8 +164,8 @@ public void ShouldReplaceAssemblyVersion(string fileExtension, string assemblyFi
164164
[TestCase("cs", "[assembly: AssemblyFileVersion(\"1.0.0.0\")]")]
165165
[TestCase("fs", "[<assembly: AssemblyFileVersion(\"1.0.0.0\")>]")]
166166
[TestCase("vb", "<Assembly: AssemblyFileVersion(\"1.0.0.0\")>")]
167-
[Category("NoMono")]
168-
[Description("Won't run on Mono due to source information not being available for ShouldMatchApproved.")]
167+
[Category(NoMono)]
168+
[Description(NoMonoDescription)]
169169
public void ShouldNotReplaceAssemblyVersionWhenVersionSchemeIsNone(string fileExtension, string assemblyFileContent)
170170
{
171171
var workingDir = Path.GetTempPath();
@@ -377,8 +377,8 @@ public void ShouldReplaceAssemblyVersionInRelativePathWithVariablesAndWhiteSpace
377377
[TestCase("cs", "[assembly: AssemblyVersion(\"1.0.0.0\")]\r\n[assembly: AssemblyFileVersion(\"1.0.0.0\")]")]
378378
[TestCase("fs", "[<assembly: AssemblyVersion(\"1.0.0.0\")>]\r\n[<assembly: AssemblyFileVersion(\"1.0.0.0\")>]")]
379379
[TestCase("vb", "<Assembly: AssemblyVersion(\"1.0.0.0\")>\r\n<Assembly: AssemblyFileVersion(\"1.0.0.0\")>")]
380-
[Category("NoMono")]
381-
[Description("Won't run on Mono due to source information not being available for ShouldMatchApproved.")]
380+
[Category(NoMono)]
381+
[Description(NoMonoDescription)]
382382
public void ShouldAddAssemblyInformationalVersionWhenUpdatingAssemblyVersionFile(string fileExtension, string assemblyFileContent)
383383
{
384384
var workingDir = Path.GetTempPath();
@@ -398,8 +398,8 @@ public void ShouldAddAssemblyInformationalVersionWhenUpdatingAssemblyVersionFile
398398
[TestCase("cs", "[assembly: AssemblyVersion(\"1.0.0.0\")]\r\n[assembly: AssemblyFileVersion(\"1.0.0.0\")]\r\n// comment\r\n")]
399399
[TestCase("fs", "[<assembly: AssemblyVersion(\"1.0.0.0\")>]\r\n[<assembly: AssemblyFileVersion(\"1.0.0.0\")>]\r\ndo\r\n()\r\n")]
400400
[TestCase("vb", "<Assembly: AssemblyVersion(\"1.0.0.0\")>\r\n<Assembly: AssemblyFileVersion(\"1.0.0.0\")>\r\n' comment\r\n")]
401-
[Category("NoMono")]
402-
[Description("Won't run on Mono due to source information not being available for ShouldMatchApproved.")]
401+
[Category(NoMono)]
402+
[Description(NoMonoDescription)]
403403
public void Issue1183ShouldAddFSharpAssemblyInformationalVersionBesideOtherAttributes(string fileExtension, string assemblyFileContent)
404404
{
405405
var workingDir = Path.GetTempPath();
@@ -419,8 +419,8 @@ public void Issue1183ShouldAddFSharpAssemblyInformationalVersionBesideOtherAttri
419419
[TestCase("cs", "[assembly: AssemblyFileVersion(\"1.0.0.0\")]")]
420420
[TestCase("fs", "[<assembly: AssemblyFileVersion(\"1.0.0.0\")>]")]
421421
[TestCase("vb", "<Assembly: AssemblyFileVersion(\"1.0.0.0\")>")]
422-
[Category("NoMono")]
423-
[Description("Won't run on Mono due to source information not being available for ShouldMatchApproved.")]
422+
[Category(NoMono)]
423+
[Description(NoMonoDescription)]
424424
public void ShouldNotAddAssemblyInformationalVersionWhenUpdatingAssemblyVersionFileWhenVersionSchemeIsNone(string fileExtension, string assemblyFileContent)
425425
{
426426
var workingDir = Path.GetTempPath();

src/GitVersionCore.Tests/Helpers/TestBase.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ namespace GitVersionCore.Tests.Helpers
66
{
77
public class TestBase
88
{
9+
public const string NoMonoDescription = "Won't run on Mono due to source information not being available for ShouldMatchApproved.";
10+
public const string NoMono = "NoMono";
11+
912
protected static IServiceProvider ConfigureServices(Action<IServiceCollection> overrideServices = null)
1013
{
1114
var services = new ServiceCollection()

src/GitVersionCore.Tests/VariableProviderTests.cs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ public void ShouldLogWarningWhenUsingDefaultInformationalVersionInCustomFormat()
5050
}
5151

5252
[Test]
53-
[Category("NoMono")]
54-
[Description("Won't run on Mono due to source information not being available for ShouldMatchApproved.")]
53+
[Category(NoMono)]
54+
[Description(NoMonoDescription)]
5555
public void ProvidesVariablesInContinuousDeliveryModeForPreRelease()
5656
{
5757
var semVer = new SemanticVersion
@@ -77,8 +77,8 @@ public void ProvidesVariablesInContinuousDeliveryModeForPreRelease()
7777
}
7878

7979
[Test]
80-
[Category("NoMono")]
81-
[Description("Won't run on Mono due to source information not being available for ShouldMatchApproved.")]
80+
[Category(NoMono)]
81+
[Description(NoMonoDescription)]
8282
public void ProvidesVariablesInContinuousDeliveryModeForPreReleaseWithPadding()
8383
{
8484
var semVer = new SemanticVersion
@@ -104,8 +104,8 @@ public void ProvidesVariablesInContinuousDeliveryModeForPreReleaseWithPadding()
104104
}
105105

106106
[Test]
107-
[Category("NoMono")]
108-
[Description("Won't run on Mono due to source information not being available for ShouldMatchApproved.")]
107+
[Category(NoMono)]
108+
[Description(NoMonoDescription)]
109109
public void ProvidesVariablesInContinuousDeploymentModeForPreRelease()
110110
{
111111
var semVer = new SemanticVersion
@@ -130,8 +130,8 @@ public void ProvidesVariablesInContinuousDeploymentModeForPreRelease()
130130
}
131131

132132
[Test]
133-
[Category("NoMono")]
134-
[Description("Won't run on Mono due to source information not being available for ShouldMatchApproved.")]
133+
[Category(NoMono)]
134+
[Description(NoMonoDescription)]
135135
public void ProvidesVariablesInContinuousDeliveryModeForStable()
136136
{
137137
var semVer = new SemanticVersion
@@ -155,8 +155,8 @@ public void ProvidesVariablesInContinuousDeliveryModeForStable()
155155
}
156156

157157
[Test]
158-
[Category("NoMono")]
159-
[Description("Won't run on Mono due to source information not being available for ShouldMatchApproved.")]
158+
[Category(NoMono)]
159+
[Description(NoMonoDescription)]
160160
public void ProvidesVariablesInContinuousDeploymentModeForStable()
161161
{
162162
var semVer = new SemanticVersion
@@ -180,8 +180,8 @@ public void ProvidesVariablesInContinuousDeploymentModeForStable()
180180
}
181181

182182
[Test]
183-
[Category("NoMono")]
184-
[Description("Won't run on Mono due to source information not being available for ShouldMatchApproved.")]
183+
[Category(NoMono)]
184+
[Description(NoMonoDescription)]
185185
public void ProvidesVariablesInContinuousDeploymentModeForStableWhenCurrentCommitIsTagged()
186186
{
187187
var semVer = new SemanticVersion
@@ -253,8 +253,8 @@ public void ProvidesVariablesInContinuousDeploymentModeWithTagSetToUseBranchName
253253
}
254254

255255
[Test]
256-
[Category("NoMono")]
257-
[Description("Won't run on Mono due to source information not being available for ShouldMatchApproved.")]
256+
[Category(NoMono)]
257+
[Description(NoMonoDescription)]
258258
public void ProvidesVariablesInContinuousDeliveryModeForFeatureBranch()
259259
{
260260
var semVer = new SemanticVersion
@@ -280,8 +280,8 @@ public void ProvidesVariablesInContinuousDeliveryModeForFeatureBranch()
280280
}
281281

282282
[Test]
283-
[Category("NoMono")]
284-
[Description("Won't run on Mono due to source information not being available for ShouldMatchApproved.")]
283+
[Category(NoMono)]
284+
[Description(NoMonoDescription)]
285285
public void ProvidesVariablesInContinuousDeliveryModeForFeatureBranchWithCustomAssemblyInformationalFormat()
286286
{
287287
var semVer = new SemanticVersion

src/GitVersionCore.Tests/WixFileTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ public void Setup()
2323
}
2424

2525
[Test]
26-
[Category("NoMono")]
27-
[Description("Won't run on Mono due to source information not being available for ShouldMatchApproved.")]
26+
[Category(NoMono)]
27+
[Description(NoMonoDescription)]
2828
public void UpdateWixVersionFile()
2929
{
3030
var workingDir = Path.GetTempPath();

0 commit comments

Comments
 (0)