Skip to content

Commit

Permalink
Merge pull request #7 from queoGmbH/Updating_Nuget_Packages
Browse files Browse the repository at this point in the history
Updating nuget packages
  • Loading branch information
PhilippRiegelmann authored Aug 23, 2024
2 parents 3122594 + cdd607b commit d0c022e
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

<ItemGroup>
<PackageReference Include="DotLiquid" Version="2.2.692" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.1" />
<PackageReference Include="Queo.Commons.Checks" Version="3.0.1" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="coverlet.msbuild" Version="3.1.2">
<PackageReference Include="coverlet.msbuild" Version="6.0.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="nunit" Version="3.13.3" />
<PackageReference Include="NUnit3TestAdapter" Version="4.2.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.0-preview-20220426-02" />
<PackageReference Include="nunit" Version="4.2.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.6.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.0" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System.Text.RegularExpressions;

using NUnit.Framework;
using NUnit.Framework.Legacy;

using Queo.Commons.MessageTemplateRenderer.Context;
using Queo.Commons.MessageTemplateRenderer.Shared;
Expand Down Expand Up @@ -31,7 +32,7 @@ public void TestParseAndRender()
string result = new DotLiquidRenderContext().ParseAndRender(TEMPLATE, model);

/* Then: Muss der Platzhalter korrekt ersetzt werden. */
Assert.AreEqual(expectedString, result);
ClassicAssert.AreEqual(expectedString, result);
}

[Test]
Expand All @@ -52,7 +53,7 @@ public void TestParseAndRenderTemplate()
string result = template.Render(model);

/* Then: Muss der Platzhalter korrekt ersetzt werden. */
Assert.AreEqual(expectedString, result);
ClassicAssert.AreEqual(expectedString, result);
}

[Test]
Expand All @@ -75,7 +76,7 @@ public void TestParseAndRenderTemplatePascalcasePropertyDoNotWork()
string result = template.Render(model);

/* Then: Muss der Platzhalter korrekt ersetzt werden. */
Assert.IsTrue(Regex.IsMatch(result, ".*Missing property.*"));
Assert.That(Regex.IsMatch(result, ".*Missing property.*"));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using Microsoft.Extensions.Logging.Abstractions;

using NUnit.Framework;
using NUnit.Framework.Legacy;

using Queo.Commons.MessageTemplateRenderer.Context;
using Queo.Commons.MessageTemplateRenderer.Provider;
Expand All @@ -30,7 +31,7 @@ public void TestLoadResource()
{
string renderedMessage = _mailMessageProvider.RenderMessage("Test", new ModelMap());

Assert.IsNotNull(renderedMessage);
ClassicAssert.IsNotNull(renderedMessage);
StringAssert.StartsWith("Subject: Testbetreff", renderedMessage);
}

Expand All @@ -39,7 +40,7 @@ public void TestRenderMessageWithoutCulture()
{
string renderedMessage = _mailMessageProvider.RenderMessage("TestWithoutCulture", new ModelMap());

Assert.IsNotNull(renderedMessage);
ClassicAssert.IsNotNull(renderedMessage);
StringAssert.StartsWith("Subject: TestWithoutCulture", renderedMessage);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using Microsoft.Extensions.Logging.Abstractions;

using NUnit.Framework;
using NUnit.Framework.Legacy;

using Queo.Commons.MessageTemplateRenderer.Context;
using Queo.Commons.MessageTemplateRenderer.Shared;
Expand Down Expand Up @@ -45,7 +46,7 @@ public void TestDeepPathTemplate()
string result = new PlaceholderRenderContext(_logger).ParseAndRender(TEMPLATE, model);

/* Then: Müssen die Platzhalter korrekt ersetzt werden. */
Assert.AreEqual(expectedString, result);
ClassicAssert.AreEqual(expectedString, result);
}

/// <summary>
Expand All @@ -64,7 +65,7 @@ public void TestFormat()
string result = new PlaceholderRenderContext(_logger).ParseAndRender(TEMPLATE, model);

/* Then: Muss das korrekte Datum im richtigen Format eingefügt wurden sein. */
Assert.AreEqual(expected, result);
ClassicAssert.AreEqual(expected, result);
}

/// <summary>
Expand All @@ -84,7 +85,7 @@ public void TestFormatCulture()
string result = new PlaceholderRenderContext(englishCulture, _logger).ParseAndRender(TEMPLATE, model);

/* Then: Muss das Datum korrekt im englischen Datumsformat eingefügt sein. */
Assert.AreEqual(expected, result);
ClassicAssert.AreEqual(expected, result);
}

/// <summary>
Expand All @@ -105,7 +106,7 @@ public void TestFormatPathNotFoundDefaultCustomString()
string result = new PlaceholderRenderContext(DEFAULT_VALUE, _logger).ParseAndRender(TEMPLATE, model);

/* Then: Muss das gefundene mit dem Datum und das andere mit dem Wert in DEFAULT_VALUE ersetzt werden . */
Assert.AreEqual(expected, result);
ClassicAssert.AreEqual(expected, result);
}

/// <summary>
Expand All @@ -124,7 +125,7 @@ public void TestFormatPathNotFoundDefaultNull()
string result = new PlaceholderRenderContext(_logger).ParseAndRender(TEMPLATE, model);

/* Then: Muss das gefundene ersetzt werden und das andere so belassen werden. */
Assert.AreEqual(expected, result);
ClassicAssert.AreEqual(expected, result);
}

/// <summary>
Expand All @@ -144,7 +145,7 @@ public void TestFormatPathNotFoundDefaultStringEmpty()
string result = new PlaceholderRenderContext(defaultValue, _logger).ParseAndRender(TEMPLATE, model);

/* Then: Muss das gefundene mit dem Datum und das andere mit string.Empty ersetzt werden . */
Assert.AreEqual(expected, result);
ClassicAssert.AreEqual(expected, result);
}

/// <summary>
Expand Down Expand Up @@ -189,7 +190,7 @@ public void TestMultiplePlaceholdersOfDifferentDepth()
string result = new PlaceholderRenderContext(_logger).ParseAndRender(TEMPLATE, model);

/* Then: Müssen die Platzhalter korrekt ersetzt werden. */
Assert.AreEqual(expectedString, result);
ClassicAssert.AreEqual(expectedString, result);
}

/// <summary>
Expand All @@ -210,7 +211,7 @@ public void TestRenderTemplate()
string result = parsedTemplate.Render(model);

/* Then: Muss der Platzhalter korrekt ersetzt werden. */
Assert.AreEqual(expectedString, result);
ClassicAssert.AreEqual(expectedString, result);
}

/// <summary>
Expand All @@ -230,7 +231,7 @@ public void TestReplaceTwice()
string result = new PlaceholderRenderContext(_logger).ParseAndRender(TEMPLATE, model);

/* Then: Müssen alle Platzhalter ersetzt werden. */
Assert.AreEqual(expected, result);
ClassicAssert.AreEqual(expected, result);
}

/// <summary>
Expand All @@ -249,7 +250,7 @@ public void TestSimpleTemplate()
string result = new PlaceholderRenderContext(_logger).ParseAndRender(TEMPLATE, model);

/* Then: Muss der Platzhalter korrekt ersetzt werden. */
Assert.AreEqual(expectedString, result);
ClassicAssert.AreEqual(expectedString, result);
}

/// <summary>
Expand All @@ -269,7 +270,7 @@ public void TestSimpleTemplateWithModelMap()
string result = new PlaceholderRenderContext(_logger).ParseAndRender(TEMPLATE, model);

/* Then: Muss der Platzhalter korrekt ersetzt werden. */
Assert.AreEqual(expectedString, result);
ClassicAssert.AreEqual(expectedString, result);
}
}
}

0 comments on commit d0c022e

Please sign in to comment.