16 lines
335 B
C#
16 lines
335 B
C#
using FluentAssertions;
|
|
using Nop.Core;
|
|
using NUnit.Framework;
|
|
|
|
namespace Nop.Tests.Nop.Core.Tests;
|
|
|
|
[TestFixture]
|
|
public class CommonHelperTests
|
|
{
|
|
[Test]
|
|
public void CanGetTypedValue()
|
|
{
|
|
CommonHelper.To<int>("1000").Should().BeOfType(typeof(int));
|
|
CommonHelper.To<int>("1000").Should().Be(1000);
|
|
}
|
|
} |