Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 6 additions & 0 deletions .azurepipelines/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ jobs:
inputs:
packageType: 'sdk'
version: '8.0.x'
- task: UseDotNet@2
displayName: 'Install .NET 9.0'
condition: eq('${{parameters.framework}}', 'net9.0')
inputs:
packageType: 'sdk'
version: '9.0.x'
- task: UseDotNet@2
displayName: 'Install .NET 10.0'
inputs:
Expand Down
19 changes: 19 additions & 0 deletions Tests/Opc.Ua.Server.Tests/ResourceManagerTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using System.Diagnostics;
using NUnit.Framework;
using Opc.Ua.Tests;
using Assert = NUnit.Framework.Legacy.ClassicAssert;
Expand Down Expand Up @@ -71,6 +72,8 @@ public void TranslateSingleLanguageWithArguments()
[Test]
public void TranslateMultiLanguageExactMatchMulRequested()
{
IgnoreNetStandard20();

ITelemetryContext telemetry = NUnitTelemetryContext.Create();

// Arrange
Expand All @@ -92,6 +95,8 @@ public void TranslateMultiLanguageExactMatchMulRequested()
[Test]
public void TranslateMultiLanguageMulRequested()
{
IgnoreNetStandard20();

ITelemetryContext telemetry = NUnitTelemetryContext.Create();

// Arrange
Expand Down Expand Up @@ -153,6 +158,8 @@ public void TranslateNoLocalesRequestedDefaultTextReturned()
[Test]
public void TranslateSingleLanguageMulRequestedWithTranslation()
{
IgnoreNetStandard20();

ITelemetryContext telemetry = NUnitTelemetryContext.Create();

// Arrange
Expand All @@ -176,6 +183,8 @@ public void TranslateSingleLanguageMulRequestedWithTranslation()
[Test]
public void TranslateKeyMulRequestedWithTranslation()
{
IgnoreNetStandard20();

ITelemetryContext telemetry = NUnitTelemetryContext.Create();

// Arrange
Expand All @@ -199,6 +208,8 @@ public void TranslateKeyMulRequestedWithTranslation()
[Test]
public void TranslateKeyMulRequestedAllLanguagesWithTranslation()
{
IgnoreNetStandard20();

ITelemetryContext telemetry = NUnitTelemetryContext.Create();

// Arrange
Expand All @@ -219,6 +230,8 @@ public void TranslateKeyMulRequestedAllLanguagesWithTranslation()
[Test]
public void TranslateKeyMulRequestedTranslationWithParameters()
{
IgnoreNetStandard20();

ITelemetryContext telemetry = NUnitTelemetryContext.Create();

// Arrange
Expand All @@ -235,5 +248,11 @@ public void TranslateKeyMulRequestedTranslationWithParameters()
resultText.Text);
Assert.AreEqual("mul", resultText.Locale);
}

[Conditional("NET_STANDARD_TESTS")]
private static void IgnoreNetStandard20()
{
NUnit.Framework.Assert.Ignore("Mul locale is not supported on .net standard");
}
}
}
Loading