示例#1
0
 public void TestImpossibleFilterModeler()
 {
     Trace.WriteLine("Running ImpossibleFilter Test.");
     var profile = new MockImpossibleFilterUserProfile(); // Only No Pork recipes are allowed, of which there are none in our mock data
     var session = this.context.CreateModelingSession(profile);
     var set = session.Generate(5, 1);
 }
示例#2
0
文件: Modeler.cs 项目: relimited/core
 public void TestImpossibleFilterModeler()
 {
     Trace.WriteLine("Running ImpossibleFilter Test.");
      var profile = new MockImpossibleFilterUserProfile(); // Only No Pork recipes are allowed, of which there are none in our mock data
      Assert.Catch(typeof (ImpossibleQueryException),
     delegate
     {
        var session = _context.CreateModelingSession(profile);
        var set = session.Generate(5, 1);
     }
     );
 }