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

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