Beispiel #1
0
        public void TestImpossiblePantryModeler()
        {
            Trace.WriteLine("Running ImpossiblePantry Test.");

            // Generates a user with pantry ingredients that aren't used by any recipe thus the pantry is considered empty and throws and impossible query exception
            var profile = new MockImpossiblePantryUserProfile();
            var session = this.context.CreateModelingSession(profile);
            var set = session.Generate(5, 1);
        }
Beispiel #2
0
 public void TestImpossiblePantryModeler()
 {
     Trace.WriteLine("Running ImpossiblePantry Test.");
      var profile = new MockImpossiblePantryUserProfile();
      Assert.Catch(typeof (ImpossibleQueryException),
     delegate
     {
        var session = _context.CreateModelingSession(profile);
        session.Generate(5, 1);
     }
     );
 }