Beispiel #1
0
 public void Registration_Suceeds_For_Well_Implemented_Aggregate_Function()
 {
     FunctionMap map = new FunctionMap();
     map.Register("test", typeof(TestFn<int>));
     Type t1 = typeof(TestFn<int>);
     Type t2 = map.GetTypeForFunction("test");
     Assert.AreEqual(typeof(TestFn<int>), map.GetTypeForFunction("test"));
 }
Beispiel #2
0
 public void Registration_Fails_If_Type_Doesnt_Implement_IAggregateFunction()
 {
     FunctionMap map = new FunctionMap();
     map.Register("test", typeof(string));
 }