Ejemplo n.º 1
0
        public void Return_False_When_Compare_VideoTitle_With_Null_Value()
        {
            // given
            VideoTitle videoTitleOne = new VideoTitle(SomeVideoTitle);

            // when
            bool result = videoTitleOne.Equals(null);

            // then
            result.Should().BeFalse();
        }
Ejemplo n.º 2
0
        public void Return_False_When_Compare_VideoTitle_With_Different_Value()
        {
            // given
            VideoTitle videoTitleOne = new VideoTitle(SomeVideoTitle);
            VideoTitle videoTitleTwo = new VideoTitle(AnotherVideoTitle);

            // when
            bool result = videoTitleOne.Equals(videoTitleTwo);

            // then
            result.Should().BeFalse();
        }
Ejemplo n.º 3
0
        public void Return_True_When_Compare_VideoTitle_With_Same_Value()
        {
            // given
            VideoTitle videoTitleOne = new VideoTitle(SomeVideoTitle);
            VideoTitle videoTitleTwo = new VideoTitle(SomeVideoTitle);

            // when
            bool result = videoTitleOne.Equals(videoTitleTwo);

            // then
            result.Should().BeTrue();
        }