(new float[] { 1, 2, 3 });
+
+ Assert.True(typeMapping.Comparer.Equals(vector1, vector2));
+ Assert.False(typeMapping.Comparer.Equals(vector1, vector3));
+ }
+
+ #endregion Vector
+
public static RelationalTypeMapping GetMapping(string type)
=> GetTypeMappingSource().FindMapping(type);
@@ -430,146 +448,6 @@ protected virtual void Test_GenerateCodeLiteral_helper(
Assert.Equal(expectedCode, csharpHelper.UnknownLiteral(value));
}
- private class FakeType(string fullName) : Type
- {
- public override object[] GetCustomAttributes(bool inherit)
- => throw new NotImplementedException();
-
- public override bool IsDefined(Type attributeType, bool inherit)
- => throw new NotImplementedException();
-
- public override ConstructorInfo[] GetConstructors(BindingFlags bindingAttr)
- => throw new NotImplementedException();
-
- public override Type GetInterface(string name, bool ignoreCase)
- => throw new NotImplementedException();
-
- public override Type[] GetInterfaces()
- => throw new NotImplementedException();
-
- public override EventInfo GetEvent(string name, BindingFlags bindingAttr)
- => throw new NotImplementedException();
-
- public override EventInfo[] GetEvents(BindingFlags bindingAttr)
- => throw new NotImplementedException();
-
- public override Type[] GetNestedTypes(BindingFlags bindingAttr)
- => throw new NotImplementedException();
-
- public override Type GetNestedType(string name, BindingFlags bindingAttr)
- => throw new NotImplementedException();
-
- public override Type GetElementType()
- => throw new NotImplementedException();
-
- protected override bool HasElementTypeImpl()
- => throw new NotImplementedException();
-
- protected override PropertyInfo GetPropertyImpl(
- string name,
- BindingFlags bindingAttr,
- Binder binder,
- Type returnType,
- Type[] types,
- ParameterModifier[] modifiers)
- => throw new NotImplementedException();
-
- public override PropertyInfo[] GetProperties(BindingFlags bindingAttr)
- => throw new NotImplementedException();
-
- protected override MethodInfo GetMethodImpl(
- string name,
- BindingFlags bindingAttr,
- Binder binder,
- CallingConventions callConvention,
- Type[] types,
- ParameterModifier[] modifiers)
- => throw new NotImplementedException();
-
- public override MethodInfo[] GetMethods(BindingFlags bindingAttr)
- => throw new NotImplementedException();
-
- public override FieldInfo GetField(string name, BindingFlags bindingAttr)
- => throw new NotImplementedException();
-
- public override FieldInfo[] GetFields(BindingFlags bindingAttr)
- => throw new NotImplementedException();
-
- public override MemberInfo[] GetMembers(BindingFlags bindingAttr)
- => throw new NotImplementedException();
-
- protected override TypeAttributes GetAttributeFlagsImpl()
- => throw new NotImplementedException();
-
- protected override bool IsArrayImpl()
- => throw new NotImplementedException();
-
- protected override bool IsByRefImpl()
- => throw new NotImplementedException();
-
- protected override bool IsPointerImpl()
- => throw new NotImplementedException();
-
- protected override bool IsPrimitiveImpl()
- => throw new NotImplementedException();
-
- protected override bool IsCOMObjectImpl()
- => throw new NotImplementedException();
-
- public override object InvokeMember(
- string name,
- BindingFlags invokeAttr,
- Binder binder,
- object target,
- object[] args,
- ParameterModifier[] modifiers,
- CultureInfo culture,
- string[] namedParameters)
- => throw new NotImplementedException();
-
- public override Type UnderlyingSystemType { get; }
-
- protected override ConstructorInfo GetConstructorImpl(
- BindingFlags bindingAttr,
- Binder binder,
- CallingConventions callConvention,
- Type[] types,
- ParameterModifier[] modifiers)
- => throw new NotImplementedException();
-
- public override string Name
- => throw new NotImplementedException();
-
- public override Guid GUID
- => throw new NotImplementedException();
-
- public override Module Module
- => throw new NotImplementedException();
-
- public override Assembly Assembly
- => throw new NotImplementedException();
-
- public override string Namespace
- => throw new NotImplementedException();
-
- public override string AssemblyQualifiedName
- => throw new NotImplementedException();
-
- public override Type BaseType
- => throw new NotImplementedException();
-
- public override object[] GetCustomAttributes(Type attributeType, bool inherit)
- => throw new NotImplementedException();
-
- public override string FullName { get; } = fullName;
-
- public override int GetHashCode()
- => FullName.GetHashCode();
-
- public override bool Equals(object o)
- => ReferenceEquals(this, o);
- }
-
protected override DbContextOptions ContextOptions { get; }
= new DbContextOptionsBuilder()
.UseInternalServiceProvider(SqlServerFixture.DefaultServiceProvider)
pFad - Phonifier reborn
Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy