Initial commit

This commit is contained in:
github-classroom[bot] 2025-04-29 15:03:45 +00:00 committed by GitHub
commit b087f272b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 5345 additions and 0 deletions

View file

@ -0,0 +1,18 @@
using Numbers.NumberFactory;
using Numbers.NumberFactory.NumberImpls;
namespace Numbers.Test.NumberFactory;
public sealed class FactoryTests
{
[Theory]
[InlineData(NumberType.Even, typeof(EvenNumbers))]
[InlineData(NumberType.Odd, typeof(OddNumbers))]
[InlineData(NumberType.Square, typeof(SquareNumbers))]
[InlineData(NumberType.Prime, typeof(PrimeNumbers))]
public void Create(NumberType type, Type expectedType)
{
Factory.Create(type, 0, 10)
.Should().BeOfType(expectedType);
}
}