Skip to content

Commit

Permalink
Merge pull request #29 from kysect/update-nuget
Browse files Browse the repository at this point in the history
Update nuget package versions
  • Loading branch information
FrediKats authored Dec 24, 2023
2 parents 0c1eb84 + 2796eb4 commit c08128e
Show file tree
Hide file tree
Showing 7 changed files with 126 additions and 117 deletions.
194 changes: 98 additions & 96 deletions Sources/.editorconfig

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Sources/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<PropertyGroup>
<RepositoryUrl>https://github.com/kysect/Kysect.CommonLib</RepositoryUrl>
<PackageProjectUrl>https://github.com/kysect/Kysect.CommonLib</PackageProjectUrl>
<Version>0.1.13</Version>
<Version>0.1.14</Version>
</PropertyGroup>

<!-- Code configuration -->
Expand Down
24 changes: 12 additions & 12 deletions Sources/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,28 @@
<ItemGroup>
<PackageVersion Include="codeessentials.Extensions.Logging.Demystifier" Version="1.1.66" />
<PackageVersion Include="IsExternalInit" Version="1.0.3" />
<PackageVersion Include="Kysect.Editorconfig" Version="1.1.4" />
<PackageVersion Include="Kysect.Editorconfig" Version="1.1.6" />
<PackageVersion Include="Lunet.Extensions.Logging.SpectreConsole" Version="1.1.0" />
<PackageVersion Include="Microsoft.Extensions.Configuration" Version="7.0.0" />
<PackageVersion Include="Microsoft.Extensions.Configuration.Abstractions" Version="7.0.0" />
<PackageVersion Include="Microsoft.Extensions.Configuration.Json" Version="7.0.0" />
<PackageVersion Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="7.0.0" />
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="7.0.0" />
<PackageVersion Include="Microsoft.Extensions.Logging" Version="7.0.0" />
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="7.0.0" />
<PackageVersion Include="Microsoft.Extensions.Hosting" Version="7.0.1" />
<PackageVersion Include="Microsoft.Extensions.Options" Version="7.0.1" />
<PackageVersion Include="Microsoft.Extensions.Options.DataAnnotations" Version="7.0.0" />
<PackageVersion Include="Serilog.Extensions.Logging" Version="7.0.0" />
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
<PackageVersion Include="Microsoft.Extensions.Logging" Version="8.0.0" />
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.0" />
<PackageVersion Include="Microsoft.Extensions.Hosting" Version="8.0.0" />
<PackageVersion Include="Microsoft.Extensions.Options" Version="8.0.0" />
<PackageVersion Include="Microsoft.Extensions.Options.DataAnnotations" Version="8.0.0" />
<PackageVersion Include="Serilog.Extensions.Logging" Version="8.0.0" />
<PackageVersion Include="Serilog.Settings.Configuration" Version="8.0.0" />
<PackageVersion Include="Serilog.Sinks.File" Version="5.0.0" />
<PackageVersion Include="System.Text.Json" Version="7.0.3" />
<PackageVersion Include="System.Text.Json" Version="8.0.0" />
<PackageVersion Include="System.ComponentModel.Annotations" Version="5.0.0" />
<PackageVersion Include="FluentAssertions" Version="[6.12.0, )" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageVersion Include="NUnit" Version="3.13.3" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageVersion Include="NUnit" Version="4.0.1" />
<PackageVersion Include="NUnit3TestAdapter" Version="4.5.0" />
<PackageVersion Include="NUnit.Analyzers" Version="3.6.1" />
<PackageVersion Include="NUnit.Analyzers" Version="3.10.0" />
<PackageVersion Include="coverlet.collector" Version="6.0.0" />
<PackageVersion Include="Nullable" Version="1.3.1" />
</ItemGroup>
Expand Down
5 changes: 4 additions & 1 deletion Sources/Kysect.CommonLib.Tests/Kysect.CommonLib.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="NUnit" />
<PackageReference Include="NUnit3TestAdapter" />
<PackageReference Include="NUnit.Analyzers" />
<PackageReference Include="NUnit.Analyzers">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="coverlet.collector">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Kysect.CommonLib.Reflection;
using FluentAssertions;
using Kysect.CommonLib.Reflection;

namespace Kysect.CommonLib.Tests.Reflection.InstanceModification;

Expand All @@ -16,8 +17,8 @@ public void ReflectionInstanceInitializer_ForInitializedInstance_ReturnExpectedV
bool firstFieldInitialized = reflectionInstanceInitializer.Set(nameof(TypeForInitialized.Value1), expected.Value1);
bool secondFieldInitialized = reflectionInstanceInitializer.Set(nameof(TypeForInitialized.Value2), expected.Value2);

Assert.True(firstFieldInitialized);
Assert.True(secondFieldInitialized);
Assert.That(actual, Is.EqualTo(expected));
firstFieldInitialized.Should().BeTrue();
secondFieldInitialized.Should().BeTrue();
actual.Should().Be(expected);
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using FluentAssertions;
using Kysect.CommonLib.Reflection;

namespace Kysect.CommonLib.Tests.Reflection.InstanceModification;
Expand All @@ -23,7 +24,8 @@ public void InstanceCreator_CreateFromDictionary_ReturnExpectedValues()

SomeType result = _instanceCreator.Create<SomeType>(dictionary);

Assert.IsNotNull(result);
result.Should().NotBeNull();
result.Should().Be(instance);
Assert.That(result, Is.EqualTo(instance));
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using FluentAssertions;
using Kysect.CommonLib.Reflection;
using Kysect.CommonLib.Reflection.TypeCache;

Expand Down Expand Up @@ -35,14 +36,14 @@ public void AttributeChecker_ForGenericAttribute_ReturnAttribute()
{
Attribute? customAttribute = _reflectionAttributeFinder.GetAttributeFromType<TestFakeAttribute<DayOfWeek>>(TypeInstanceCache<SomeTestType>.Instance);

Assert.NotNull(customAttribute);
customAttribute.Should().NotBeNull();
}

[Test]
public void AttributeChecker_ForTypeWithoutAttribute_ReturnFalse()
{
bool hasAttribute = _reflectionAttributeFinder.HasAttribute<AuthorAttribute>(TypeInstanceCache<object>.Instance);

Assert.IsFalse(hasAttribute);
hasAttribute.Should().BeFalse();
}
}

0 comments on commit c08128e

Please sign in to comment.