コード例 #1
0
ファイル: Modeler.cs プロジェクト: KaloyanTodorov/Teamwork
 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);
     }
     );
 }