Beispiel #1
0
        public void HashingLogger_logs_properly()
        {
            var logger = new HashingLogger(new SimpleLogger());
            var log    = logger.Log("Marcin");

            log.Should().NotContain("Marcin");
        }
Beispiel #2
0
        public void TimestampingHashingLogger_logs_properly()
        {
            var logger = new HashingLogger(new TimestampingLogger(new SimpleLogger()));
            var log    = logger.Log("Marcin");

            log.Should().NotContain("Marcin");
            log.Should().NotStartWith("2021");
        }