Esempio n. 1
0
 private void DoAreEqualTest(bool areEqual, IEnumerable <int> left, IEnumerable <int> right, Func <int, int, bool> equals)
 {
     Assert.AreEqual(areEqual, EnumerableUtility.AreEqual(left, right, equals));
     Assert.AreEqual(areEqual, EnumerableUtility.AreEqual(right, left, equals));
 }
Esempio n. 2
0
 private static ConstructorInfo GetConstructor(Type type, Type[] types)
 => type.GetTypeInfo().DeclaredConstructors.FirstOrDefault(x => x.IsPublic && EnumerableUtility.AreEqual(x.GetParameters().Select(p => p.ParameterType), types));
Esempio n. 3
0
 private void DoAreEqualTest(bool areEqual, IEnumerable <int>?left, IEnumerable <int>?right)
 {
     Assert.AreEqual(areEqual, EnumerableUtility.AreEqual(left, right));
     Assert.AreEqual(areEqual, EnumerableUtility.AreEqual(right, left));
 }