Exemple #1
0
        public void stores_the_last_five_per_spec()
        {
            theCache.Store(new SpecExecutionCompleted("foo", new SpecResults(), new Specification()));
            theCache.Store(new SpecExecutionCompleted("foo", new SpecResults(), new Specification()));
            theCache.Store(new SpecExecutionCompleted("foo", new SpecResults(), new Specification()));
            theCache.Store(new SpecExecutionCompleted("foo", new SpecResults(), new Specification()));
            theCache.Store(new SpecExecutionCompleted("foo", new SpecResults(), new Specification()));
            theCache.Store(new SpecExecutionCompleted("foo", new SpecResults(), new Specification()));
            theCache.Store(new SpecExecutionCompleted("foo", new SpecResults(), new Specification()));
            theCache.Store(new SpecExecutionCompleted("foo", new SpecResults(), new Specification()));
            theCache.Store(new SpecExecutionCompleted("foo", new SpecResults(), new Specification()));
            theCache.Store(new SpecExecutionCompleted("foo", new SpecResults(), new Specification()));
            theCache.Store(new SpecExecutionCompleted("foo", new SpecResults(), new Specification()));

            theCache.ResultsFor("foo").Count().ShouldBe(5);
        }