public void TestInsertSingleLog()
        {
            Logger.DeleteAll(CollectionName);
            TestLoggable test = new TestLoggable();

            Logger.InsertLog(test);
        }
示例#2
0
        public void ShouldSubscribe()
        {
            TestLoggable loggable = new TestLoggable();
            TestLogger   logger   = new TestLogger();

            Expect.IsFalse(logger.AddCalled);
            loggable.Subscribe(logger);
            loggable.Fire();
            Expect.IsTrue(logger.AddCalled);
        }