Exemple #1
0
        public void ThenIHaveALogInTheSystemMatchingTheFollowing(Table table)
        {
            var logModel = table.CreateInstance <LogModel>();
            var logs     = SeDatabase.GetLogs();

            Assert.IsTrue(logs.Count(a => a.Level == logModel.Level && a.Message.Contains(logModel.Message)) == 1, "Log does not match message");
        }
Exemple #2
0
        public void ThenIHaveTheFollowingLogsInTheSystem(Table table)
        {
            var logs = SeDatabase.GetLogs();

            table.CompareToSet(logs);
        }