Skip to content

Commit

Permalink
Fix ReSharper issues
Browse files Browse the repository at this point in the history
  • Loading branch information
skrysmanski committed Sep 21, 2024
1 parent 683744f commit 19b2f0f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/AppMotor.Core/ComponentModel/StringTypeConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
using System.ComponentModel;
using System.Globalization;

using JetBrains.Annotations;

namespace AppMotor.Core.ComponentModel;

/// <summary>
Expand Down Expand Up @@ -34,6 +36,7 @@ public sealed override object ConvertFrom(ITypeDescriptorContext? context, Cultu
/// <summary>
/// Converts the specified string into the type of this converter.
/// </summary>
[PublicAPI]
protected abstract T ConvertFrom(string value, ITypeDescriptorContext? context, CultureInfo? culture);

/// <inheritdoc />
Expand All @@ -53,5 +56,6 @@ public sealed override object ConvertFrom(ITypeDescriptorContext? context, Cultu
/// <summary>
/// Converts the specified instance into a string.
/// </summary>
[PublicAPI]
protected abstract string ConvertTo(T value, ITypeDescriptorContext? context, CultureInfo? culture);
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public sealed class ProcessArgumentsTests
public void Test_Constructor_Array()
{
new ProcessArguments().Count.ShouldBe(0);
// ReSharper disable once RedundantExplicitParamsArrayCreation
new ProcessArguments([]).Count.ShouldBe(0);
// ReSharper disable once RedundantCast
new ProcessArguments((string[]?)null).Count.ShouldBe(0);
Expand Down

0 comments on commit 19b2f0f

Please sign in to comment.