コード例 #1
0
        public void ShouldResetStepCountForNewScenario()
        {
            var sut = new SequentialKeyGenerator();
            sut.GetStepId();
            sut.GetScenarioId();

            Assert.That(sut.GetStepId(), Is.EqualTo("step-2-1"));
        }
コード例 #2
0
        public void ShouldResetStepCountForNewScenario()
        {
            var sut = new SequentialKeyGenerator();
            sut.GetStepId();
            sut.GetScenarioId();

            sut.GetStepId().ShouldBe("step-2-1");
        }
コード例 #3
0
        public void ShouldIncrementScenarioIdForEachRequestForScenariId()
        {
            var sut = new SequentialKeyGenerator();

            for (int i = 1; i <= 12; i++)
            {
                Assert.That(sut.GetScenarioId(), Is.EqualTo("scenario-" + i));
            }
        }
コード例 #4
0
        public void ShouldIncrementScenarioIdForEachRequestForScenariId()
        {
            var sut = new SequentialKeyGenerator();

            for (int i = 1; i <= 12; i++)
            {
                sut.GetScenarioId().ShouldBe("scenario-" + i);
            }
        }