ci: 💚 Fix file structure
All checks were successful
Tests / Unit Testing1 (push) Successful in 1m1s

This commit is contained in:
2023-11-02 16:29:02 +01:00
parent 6e27660234
commit a42e51b609
8 changed files with 127 additions and 2 deletions

View File

@ -2,5 +2,27 @@ namespace Tests.Interatif;
public class IterationTests
{
[Theory]
[InlineData(123, 321)]
[InlineData(1234, 4321)]
[InlineData(4, 4)]
[InlineData(-4, -4)]
[InlineData(24, 42)]
[InlineData(-123456, -654321)]
public void ReverseintTest(int n, int expected)
{
int actual = Iteration.Iterations.Reverseint(n);
Assert.Equal(expected, actual);
}
[Theory]
[InlineData("Clement est le plus beau", "moche", false)]
[InlineData("Clement est le plus beau", "beau", true)]
public void FindSubTest(string s, string sub, bool expected)
{
bool actual = Iteration.Iterations.FindSub(s, sub);
Assert.Equal(expected, actual);
}
}

View File

@ -22,4 +22,8 @@
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Iteration\Iteration.csproj" />
</ItemGroup>
</Project>