示例#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);
        }