internal static void SetwasOutput(this SearchPathHelper targetClass, bool value) { var po = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject(targetClass); try { po.SetFieldOrProperty("wasOutput", value); } catch (System.MissingMethodException missingMethodException) { throw new System.NotSupportedException("wasOutput with requested parameters is not found. Rerun code generation.", missingMethodException); } }
internal static string GetsearchPath(this SearchPathHelper targetClass) { var po = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject(targetClass); try { return((string)po.GetFieldOrProperty("searchPath")); } catch (System.MissingMethodException missingMethodException) { throw new System.NotSupportedException("searchPath with requested parameters is not found. Rerun code generation.", missingMethodException); } }
internal static void CallPgDiffTypesAddDefinition(StreamWriter writer, PgType type, List <string> newValues, SearchPathHelper searchPathHelper) { var pt = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateType(typeof(PgDiffTypes)); try { pt.InvokeStatic("AddDefinition", new object[] { writer, type, newValues, searchPathHelper }); } catch (System.MissingMethodException missingMethodException) { throw new System.NotSupportedException("AddDefinition with requested parameters is not found. Rerun code generation.", missingMethodException); } }
internal static void CallPgDiffViewsDiffDefaultValues(StreamWriter writer, PgView oldView, PgView newView, SearchPathHelper searchPathHelper) { var pt = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateType(typeof(PgDiffViews)); try { pt.InvokeStatic("DiffDefaultValues", new object[] { writer, oldView, newView, searchPathHelper }); } catch (System.MissingMethodException missingMethodException) { throw new System.NotSupportedException("DiffDefaultValues with requested parameters is not found. Rerun code generation.", missingMethodException); } }
internal static void CallPgDiffTablesAlterComments(StreamWriter writer, PgTable oldTable, PgTable newTable, SearchPathHelper searchPathHelper) { var pt = new Microsoft.VisualStudio.TestTools.UnitTesting.PrivateType(typeof(PgDiffTables)); try { pt.InvokeStatic("AlterComments", new object[] { writer, oldTable, newTable, searchPathHelper }); } catch (System.MissingMethodException missingMethodException) { throw new System.NotSupportedException("AlterComments with requested parameters is not found. Rerun code generation.", missingMethodException); } }