Пример #1
0
 public void Setup()
 {
     _testee = new ColumnFormulaBuilder(
         typeof(DataRow),
         new Dictionary <string, Type> {
         { "I", typeof(int) }, { "D", typeof(decimal) }, { "S", typeof(string) }
     }.TryGetValue,
         (string methodName, out IReadOnlyCollection <MethodInfo> result) =>
         (result = GetType().GetMethods(BindingFlags.Static | BindingFlags.NonPublic).Where(mi => mi.Name == methodName).ToArray()).Any());
 }
Пример #2
0
 public void Setup()
 {
     _testee = new ColumnFormulaBuilder(typeof(PropertyHolder), PropertyHolder.TryGetPropertyType, StockFunctions.TryGetFunction);
 }