From 564e13676e412af7e29780077bd6ea6d559f3323 Mon Sep 17 00:00:00 2001 From: Eric Rozell Date: Wed, 9 Oct 2019 23:27:36 -0400 Subject: [PATCH] Bumps NuGet version to 0.5.3 In preparation for release, bumps NuGet version to 0.5.3. Also, fixes issue with NLU.DevOps.Core assembly version. --- src/CommonNuget.props | 2 +- .../LabeledUtterancePropertyExtensionsTests.cs | 10 ++++++++++ src/NLU.DevOps.Core/NLU.DevOps.Core.csproj | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/CommonNuget.props b/src/CommonNuget.props index a29d6bb..62f6d51 100644 --- a/src/CommonNuget.props +++ b/src/CommonNuget.props @@ -8,6 +8,6 @@ https://github.com/Microsoft/NLU.DevOps https://github.com/Microsoft/NLU.DevOps.git © Microsoft Corporation. - 0.5.2 + 0.5.3 diff --git a/src/NLU.DevOps.Core.Tests/LabeledUtterancePropertyExtensionsTests.cs b/src/NLU.DevOps.Core.Tests/LabeledUtterancePropertyExtensionsTests.cs index c429cff..b11a920 100644 --- a/src/NLU.DevOps.Core.Tests/LabeledUtterancePropertyExtensionsTests.cs +++ b/src/NLU.DevOps.Core.Tests/LabeledUtterancePropertyExtensionsTests.cs @@ -21,6 +21,16 @@ public static void ThrowsArgumentNull() nullUtterance.Should().Throw().And.ParamName.Should().Be("instance"); } + [Test] + public static void DoesNotCreateJsonInstance() + { + var expected = new Entity(string.Empty, null, string.Empty, 0); + var actual = expected.WithScore(null); + actual.Should().BeSameAs(expected); + expected.GetScore().Should().BeNull(); + actual.GetScore().Should().BeNull(); + } + [Test] public static void DoesNotCreateNewInstance() { diff --git a/src/NLU.DevOps.Core/NLU.DevOps.Core.csproj b/src/NLU.DevOps.Core/NLU.DevOps.Core.csproj index c7e2893..f45c91f 100644 --- a/src/NLU.DevOps.Core/NLU.DevOps.Core.csproj +++ b/src/NLU.DevOps.Core/NLU.DevOps.Core.csproj @@ -3,7 +3,7 @@ netstandard2.0 - 0.4.0 + 0.5.0