Skip to content

Commit

Permalink
Added git add. commit and checkout
Browse files Browse the repository at this point in the history
see also: #1
  • Loading branch information
AnderssonPeter committed Jan 8, 2022
1 parent 15b3aa4 commit 0b5b39f
Show file tree
Hide file tree
Showing 11 changed files with 556 additions and 85 deletions.
4 changes: 2 additions & 2 deletions GenerateDictionaries/git/asciidoc.to.dictionary.xlts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
Description = "</xsl:text>
<xsl:value-of disable-output-escaping="yes" select="normalize-space(./refentry/refnamediv/refpurpose)"/>
<xsl:text>";
Parameters = @{
Parameters = @(
</xsl:text>
<xsl:for-each select="refentry/*[@id='_options']/variablelist/varlistentry">
<xsl:text> [</xsl:text>
Expand Down Expand Up @@ -100,7 +100,7 @@
<xsl:text> },
</xsl:text>
</xsl:for-each>
<xsl:text> },
<xsl:text> ),
</xsl:text>
<xsl:text> },</xsl:text>
</xsl:template>
Expand Down
8 changes: 4 additions & 4 deletions PowerType.Tests/ConditionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public void InCondition(object? value, object?[] collection, bool expected)
[Theory]
public void LargerThanCondition(object firstValue, object secondValue, bool expected)
{
var condition = new LargerThanCondition(firstValue, secondValue);
var condition = new LargerCondition(firstValue, secondValue);
condition.Evaluate(parameters).Should().Be(expected);
}

Expand All @@ -113,7 +113,7 @@ public void LargerThanCondition(object firstValue, object secondValue, bool expe
[Theory]
public void LargerOrEqualThanCondition(object firstValue, object secondValue, bool expected)
{
var condition = new LargerOrEqualThanCondition(firstValue, secondValue);
var condition = new LargerOrEqualCondition(firstValue, secondValue);
condition.Evaluate(parameters).Should().Be(expected);
}

Expand All @@ -123,7 +123,7 @@ public void LargerOrEqualThanCondition(object firstValue, object secondValue, bo
[Theory]
public void LesserThanCondition(object firstValue, object secondValue, bool expected)
{
var condition = new LesserThanCondition(firstValue, secondValue);
var condition = new LesserCondition(firstValue, secondValue);
condition.Evaluate(parameters).Should().Be(expected);
}

Expand All @@ -133,7 +133,7 @@ public void LesserThanCondition(object firstValue, object secondValue, bool expe
[Theory]
public void LesserOrEqualThanCondition(object firstValue, object secondValue, bool expected)
{
var condition = new LesserOrEqualThanCondition(firstValue, secondValue);
var condition = new LesserOrEqualCondition(firstValue, secondValue);
condition.Evaluate(parameters).Should().Be(expected);
}
}
549 changes: 510 additions & 39 deletions PowerType/Dictionaries/git.ps1

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions PowerType/Model/Conditions/LargerCondition.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace PowerType.Model.Conditions;

public class LargerCondition : CompareCondition
{
public LargerCondition(object firstValue, object secondValue) : base(firstValue, secondValue)
{
}

protected override bool Evaluate(int value) => value > 0;
}
10 changes: 10 additions & 0 deletions PowerType/Model/Conditions/LargerOrEqualCondition.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace PowerType.Model.Conditions;

public class LargerOrEqualCondition : CompareCondition
{
public LargerOrEqualCondition(object firstValue, object secondValue) : base(firstValue, secondValue)
{
}

protected override bool Evaluate(int value) => value >= 0;
}
10 changes: 0 additions & 10 deletions PowerType/Model/Conditions/LargerOrEqualThanCondition.cs

This file was deleted.

10 changes: 0 additions & 10 deletions PowerType/Model/Conditions/LargerThanCondition.cs

This file was deleted.

10 changes: 10 additions & 0 deletions PowerType/Model/Conditions/LesserCondition.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace PowerType.Model.Conditions;

public class LesserCondition : CompareCondition
{
public LesserCondition(object firstValue, object secondValue) : base(firstValue, secondValue)
{
}

protected override bool Evaluate(int value) => value < 0;
}
10 changes: 10 additions & 0 deletions PowerType/Model/Conditions/LesserOrEqualCondition.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace PowerType.Model.Conditions;

public class LesserOrEqualCondition : CompareCondition
{
public LesserOrEqualCondition(object firstValue, object secondValue) : base(firstValue, secondValue)
{
}

protected override bool Evaluate(int value) => value <= 0;
}
10 changes: 0 additions & 10 deletions PowerType/Model/Conditions/LesserOrEqualThanCondition.cs

This file was deleted.

10 changes: 0 additions & 10 deletions PowerType/Model/Conditions/LesserThanCondition.cs

This file was deleted.

0 comments on commit 0b5b39f

Please sign in to comment.