Beispiel #1
0
        // ReSharper disable once InconsistentNaming
        public void HasNetwork_Returns_True_If_Network_Is_Attached()
        {
            var network = new Network();

            var show = new Show
            {
                Network = network
            };

            Assert.True(show.HasNetwork());
        }
Beispiel #2
0
        // ReSharper disable once InconsistentNaming
        public void HasNetwork_Returns_True_If_NetworkId_Is_Greater_Than_Zero()
        {
            var show = new Show
            {
                NetworkId = 42
            };

            Assert.True(show.HasNetwork());
        }
Beispiel #3
0
        // ReSharper disable once InconsistentNaming
        public void HasNetwork_Returns_False_If_NetworkId_Is_Zero()
        {
            var show = new Show
            {
                NetworkId = 0
            };

            Assert.False(show.HasNetwork());
        }