Class MetaDataTestUtils
Inheritance
System.Object
MetaDataTestUtils
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Terrasoft.TestFramework.dll
public static class MetaDataTestUtils
Methods
Declaration
public static void ApplyMetaData(MetaItem source, MetaItem target)
Parameters
Declaration
public static TItem CloneAbstractMetaItem<TItem>(this TItem source)
where TItem : IMetaDataSerializable, ICloneable
Parameters
Type |
Name |
Description |
TItem |
source |
|
Returns
Type Parameters
Declaration
public static TItem CloneMetaItem<TItem>(this TItem source)
where TItem : IMetaDataSerializable, ICloneable, new()
Parameters
Type |
Name |
Description |
TItem |
source |
|
Returns
Type Parameters
Declaration
public static TItem CloneSchema<TItem>(this TItem source, params object[] constructorArguments)
where TItem : IMetaDataSerializable, ICloneable
Parameters
Type |
Name |
Description |
TItem |
source |
|
System.Object[] |
constructorArguments |
|
Returns
Type Parameters
Declaration
public static string GetMetaData(this IMetaDataSerializable source)
Parameters
Returns
Type |
Description |
System.String |
|
Declaration
public static void MetaPropertiesShouldNotHaveDefValue<TInstance>(this TInstance source)
Parameters
Type |
Name |
Description |
TInstance |
source |
|
Type Parameters
Name |
Description |
TInstance |
|
Declaration
public static void MetaPropertiesShouldNotHaveDefValue<TInstance>(this TInstance source, bool typeDoesntContainMetaProperties)
Parameters
Type |
Name |
Description |
TInstance |
source |
|
System.Boolean |
typeDoesntContainMetaProperties |
|
Type Parameters
Name |
Description |
TInstance |
|