Exemplo n.º 1
0
        public static void CheckForErrors()
        {
            var errors = SeDatabase.GetSystemErrors();

            Assert.That(errors.Count, Is.EqualTo(0), $"Expected No errors but found error(s) {string.Join(", ", errors.Select(a => a.Message).ToArray())}");
            var appSensorErrors = SeDatabase.GetAppSensorErrors();

            Assert.That(appSensorErrors.Count, Is.EqualTo(0), $"Expected No errors but found appSensor error(s) {string.Join(", ", appSensorErrors.Select(a => a.Message).ToArray())}");
            var cspWarnings = SeDatabase.GetCspWarnings();

            Assert.That(cspWarnings.Count, Is.EqualTo(0), $"Expected No Csp Warnings but found warnings(s) {string.Join(", ", cspWarnings.Select(a => a.Message).ToArray())}");
        }