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); }
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); } ); }