This repository has been archived on 2024-12-07. You can view files and clone it, but cannot push or open issues or pull requests.
Cinemateket/backend/cinemateketTests/ValidatorTests/QueryParameterValidatorsTests.cs
haraldnilsen c599661f3f created the first working test in the project
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-10-12 12:03:34 +02:00

18 lines
No EOL
436 B
C#

using Xunit;
using backend;
public class QueryParameterValidatorsTests
{
[Theory]
[InlineData("Star Wars", true)]
[InlineData("", false)]
[InlineData(null, false)]
public void IsValidS_ShouldReturnExpectedResult(string input, bool expectedResult)
{
bool result = QueryParameterValidators.IsValidS(input);
Assert.Equal(expectedResult, result);
}
// Add more tests for other validators
}