public void RelativeToSetting_UnitTest()
 {
     ExecuteProperty(
         () =>
         // Create Test Instance
     {
         var instance = (IServiceDefinition)GetInstance();
         return(instance);
     },
         // Create Set Value
         instance =>
     {
         IRelativeToSetting setValue = default(IRelativeToSetting);
         RelativeToSetting_SetCondition(ref instance, ref setValue);
         return(setValue);
     },
         // Invoke Setter
         (instance, setValue) => { instance.RelativeToSetting = setValue; },
         // Validate Set Operation
         (instance, setValue) => { },
         // Invoke Getter
         instance => { return(instance.RelativeToSetting); },
         // Validate Get Operation
         (instance, setValue, getValue) => { });
 }
Exemple #2
0
 /// <summary>
 /// Gets the instance.
 /// </summary>
 /// <param name="src">The source.</param>
 /// <returns>RelativeToSetting.</returns>
 public static RelativeToSetting GetInstance(IRelativeToSetting src)
 {
     return(EnumTransform <IRelativeToSetting, RelativeToSetting> .Change(src));
 }
 partial void RelativeToSetting_SetCondition(ref IServiceDefinition instance, ref IRelativeToSetting setValue);