예제 #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);
     }
     );
 }