Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
disabled the GitVersionTask Properties on mono,
- the ProjectCollection seems not supported on mono
  • Loading branch information
DerAlbertCom committed Jun 28, 2019
commit b592d78d9b1a7ca163dd192eeb5460e319cbab66
8 changes: 8 additions & 0 deletions src/GitVersionTask.Tests/GitVersionTaskPropertiesTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,15 @@ public class GitVersionTaskPropertiesTests
}

[Test]
[Category("NoMono")]
public void Zero_properties_should_fail_the_build_because()
{
var result = CallMsBuild(new Dictionary<string, string>());
result.failed.ShouldBeTrue();
}

[Test]
[Category("NoMono")]
public void With_DisableGitVersionTask_the_build_should_work()
{
var globalProperties = new Dictionary<string, string>
Expand All @@ -74,6 +76,7 @@ public void With_DisableGitVersionTask_the_build_should_work()
}

[Test]
[Category("NoMono")]
public void With_Enabled_GetVersionTask_the_Build_properties_should_be_initialized()
{
var result = CallMsBuild(new Dictionary<string, string>());
Expand All @@ -88,6 +91,7 @@ public void With_Enabled_GetVersionTask_the_Build_properties_should_be_initializ


[Test]
[Category("NoMono")]
public void With_DisabledGetVersionTask_the_WriteVersionInfoToBuildLog_should_be_false()
{
var globalProperties = new Dictionary<string, string>
Expand All @@ -100,6 +104,7 @@ public void With_DisabledGetVersionTask_the_WriteVersionInfoToBuildLog_should_be
}

[Test]
[Category("NoMono")]
public void With_DisabledGetVersionTask_the_UpdateAssemblyInfo_should_be_false()
{
var globalProperties = new Dictionary<string, string>
Expand All @@ -111,6 +116,7 @@ public void With_DisabledGetVersionTask_the_UpdateAssemblyInfo_should_be_false()
}

[Test]
[Category("NoMono")]
public void With_DisabledGetVersionTask_the_GenerateGitVersionInformation_should_be_false()
{
var globalProperties = new Dictionary<string, string>
Expand All @@ -122,6 +128,7 @@ public void With_DisabledGetVersionTask_the_GenerateGitVersionInformation_should
}

[Test]
[Category("NoMono")]
public void With_DisabledGetVersionTask_the_GetVersion_should_be_false()
{
var globalProperties = new Dictionary<string, string>
Expand All @@ -133,6 +140,7 @@ public void With_DisabledGetVersionTask_the_GetVersion_should_be_false()
}

[Test]
[Category("NoMono")]
public void With_DisabledGetVersionTask_the_UpdateVersionProperties_should_be_false()
{
var globalProperties = new Dictionary<string, string>
Expand Down