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

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