Initial commit.
This commit is contained in:
1 parent
e5b0fea18c
commit
9f35f6c558
94 files changed
+12857
No files matched your search
@@ -0,0 +1,22 @@
|
||||
using FluentAssertions;
|
||||
using Xunit;
|
||||
|
||||
namespace PerfectNumbers.Core.Tests;
|
||||
|
||||
[Trait("Category", "Fast")]
|
||||
public class EulerPrimeTesterTests
|
||||
{
|
||||
private readonly EulerPrimeTester _tester = new(new PrimeTester());
|
||||
|
||||
[Theory]
|
||||
[InlineData(13UL, true)]
|
||||
[InlineData(29UL, true)]
|
||||
[InlineData(3UL, false)]
|
||||
[InlineData(21UL, false)]
|
||||
[InlineData(1UL, false)]
|
||||
public void IsEulerPrime_returns_expected(ulong n, bool expected)
|
||||
{
|
||||
_tester.IsEulerPrime(n).Should().Be(expected);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user