예제 #1
0
        public void WhenAnythingWithSpecialCharacters_ThenReturnsTrue()
        {
            var result = Validations.Anything().Matches("atext^是⎈𐂯؄💩⚡");

            result.Should().BeTrue();
        }
예제 #2
0
        public void WhenAnythingWithTooLong_ThenReturnsFalse()
        {
            var result = Validations.Anything(2, 10).Matches("atoolongstring");

            result.Should().BeFalse();
        }
예제 #3
0
        public void WhenAnythingWithMaxChars_ThenReturnsTrue()
        {
            var result = Validations.Anything(2, 6).Matches("avalue");

            result.Should().BeTrue();
        }
예제 #4
0
        public void WhenAnythingWithTooShort_ThenReturnsFalse()
        {
            var result = Validations.Anything(2, 10).Matches("a");

            result.Should().BeFalse();
        }