Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

CommonHelperTests.cs

using FluentAssertions;
using Nop.Core;
using NUnit.Framework;

namespace Nop.Tests.Nop.Core.Tests;

[TestFixture]
public class CommonHelperTests
{
    [Test]
    public void CanGetTypedValue()
    {
        CommonHelper.To("1000").Should().BeOfType(typeof(int));
        CommonHelper.To("1000").Should().Be(1000);
    }
}