コード例 #1
0
        public void LazyLessOrEqualShouldThrowIfValueProviderIsNull()
        {
            Action action = () => Pattern.LessOrEqual((Func <int>)null);

            action.Should().Throw <ArgumentNullException>();
        }
コード例 #2
0
 public Property LazyLessOrEqualShouldSucceedOnlyWhenValueIsLessOrEqual(string x, string y)
 => (Comparer <string> .Default.Compare(x, y) <= 0 == Pattern.LessOrEqual(() => y).Match(x).IsSome).ToProperty();