Exemplo n.º 1
0
        public void ShouldNotBePossibleToAddNULL()
        {
            //Given
            StoryRunner storyRunner = new StoryRunner(null);

            //When
            storyRunner.AddStory <object>(null);
        }
        public void ShouldNotBePossibleToAddNULL()
        {
            //Given
            StoryRunner storyRunner = new StoryRunner(null);

            //When
            storyRunner.AddStory<object>(null);
        }
        public void SHouldNotBePossibleToAddStringAsStory()
        {
            //Given
            StoryRunner storyRunner = new StoryRunner(Assembly.GetAssembly(this.GetType()));

            string story = "Ths is not a story";
            //When
            storyRunner.AddStory(story);

            //Then
            // we get an exception
        }
Exemplo n.º 4
0
        public void SHouldNotBePossibleToAddStringAsStory()
        {
            //Given
            StoryRunner storyRunner = new StoryRunner(Assembly.GetAssembly(this.GetType()));

            string story = "Ths is not a story";

            //When
            storyRunner.AddStory(story);

            //Then
            // we get an exception
        }
        public void ShouldRunStory()
        {
            //Given
            FakeStory story = new FakeStory();

            StoryRunner storyRunner = new StoryRunner();
            storyRunner.AddStory(story);
            //When
            storyRunner.Run();

            //Then
            Assert.IsTrue(story.didCallRun);
        }
Exemplo n.º 6
0
        public void ShouldRunStory()
        {
            //Given
            FakeStory story = new FakeStory();

            StoryRunner storyRunner = new StoryRunner();

            storyRunner.AddStory(story);
            //When
            storyRunner.Run();

            //Then
            Assert.IsTrue(story.didCallRun);
        }