예제 #1
0
        internal static void SetCreateAggregateParserLog(ILog value)
        {
            var pt = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateType(typeof(CreateAggregateParser));

            try
            {
                pt.SetStaticFieldOrProperty("Log", value);
            }
            catch (System.MissingMethodException missingMethodException)
            {
                throw new System.NotSupportedException("Log with requested parameters is not found. Rerun code generation.", missingMethodException);
            }
        }
예제 #2
0
        internal static void SetPrivilegeParserenumEntries(List <PgPrivilegeKind> value)
        {
            var pt = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateType(typeof(PrivilegeParser));

            try
            {
                pt.SetStaticFieldOrProperty("enumEntries", value);
            }
            catch (System.MissingMethodException missingMethodException)
            {
                throw new System.NotSupportedException("enumEntries with requested parameters is not found. Rerun code generation.", missingMethodException);
            }
        }
        internal static void SetDatabaseVersionRegexDumpVersion(Regex value)
        {
            var pt = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateType(typeof(DatabaseVersion));

            try
            {
                pt.SetStaticFieldOrProperty("RegexDumpVersion", value);
            }
            catch (System.MissingMethodException missingMethodException)
            {
                throw new System.NotSupportedException("RegexDumpVersion with requested parameters is not found. Rerun code generation.", missingMethodException);
            }
        }