Ejemplo n.º 1
0
        public void LazyEqualToShouldThrowIfValueProviderIsNull()
        {
            Action action = () => Pattern.EqualTo((Func <int>)null);

            action.Should().Throw <ArgumentNullException>();
        }
Ejemplo n.º 2
0
 public Property LazyEqualToShouldSucceedOnlyOnEqualObjects(string x, string y)
 => (Equals(x, y) == Pattern.EqualTo(() => y).Match(x).IsSome).ToProperty();