Ejemplo n.º 1
0
        public void Result_Should_Be_True_With_Or_And()
        {
            var source = EqualityTestObject.Default();

            Assert.True(source.If().Not.Null.Or.In(GetEqualityObjectCollectionWithDefault(true)).And.Not.In(GetEqualityObjectCollectionWithDefault(false)).Result);
            Assert.True(source.If().Null.Or.In(GetEqualityObjectCollectionWithDefault(true)).And.Not.In(GetEqualityObjectCollectionWithDefault(false)).Result);
        }
Ejemplo n.º 2
0
 private static IEnumerable <EqualityTestObject> GetEqualityObjectCollectionWithDefault(bool withDefault)
 => new[] { EqualityTestObject.New(), EqualityTestObject.New("str", 5), withDefault ? EqualityTestObject.Default() : null };
Ejemplo n.º 3
0
 private static IChainableCondition <EqualityTestObject> EqualityTestObjectInCollectionCondition()
 => EqualityTestObject.Default().If();