コード例 #1
0
        public void WhenBuildWithTitle_ExpectEntityToHaveSameValue(string expectedTitle)
        {
            var entity = new TvBuilder(expectedTitle);

            entity.Title.Should().Be(expectedTitle);
        }
コード例 #2
0
        public void WhenBuildWithSeasons_ExpectEntityToHaveSameValue(int expectedSeasons)
        {
            var entity = new TvBuilder("Friday Night Lights").WithSeasons(expectedSeasons);

            entity.Season.Should().Be(expectedSeasons);
        }
コード例 #3
0
        public void WhenBuildWithoutSeasons_ExpectEntityToBeNull()
        {
            var entity = new TvBuilder("Friday Night Lights").Build();

            entity.Seasons.Should().BeNull();
        }
コード例 #4
0
        public void WhenBuildWithEpisodes_ExpectEntityToHaveSameValue(int expectedEpisodes)
        {
            var entity = new TvBuilder("Friday Night Lights").WithEpisodes(expectedEpisodes).Build();

            entity.Episodes.Should().Be(expectedEpisodes);
        }