Example #1
0
        public void TestMusicSelectionInfoForLabelAsLabel_MethodDecrementCountThatIsAlreadyZero_ThrowsInvalidOperationException()
        {
            //Arrange
            MockMusicSelectionDetailsInfoProvider mockMusicSelectionDetailsInfoProvider =
                new MockMusicSelectionDetailsInfoProvider();
            MusicSelectionInfoForLabelAsLabel musicSelectionForLabelAsLabel =
                new MusicSelectionInfoForLabelAsLabel(mockMusicSelectionDetailsInfoProvider, true);

            //Act
            musicSelectionForLabelAsLabel.DecrementCount();
            musicSelectionForLabelAsLabel.DecrementCount();
        }
Example #2
0
        public void TestMusicSelectionInfoForLabelAsLabel_MethodDecrementCount()
        {
            //Arrange
            MockMusicSelectionDetailsInfoProvider mockMusicSelectionDetailsInfoProvider =
                new MockMusicSelectionDetailsInfoProvider();
            MusicSelectionInfoForLabelAsLabel musicSelectionForLabelAsLabel =
                new MusicSelectionInfoForLabelAsLabel(mockMusicSelectionDetailsInfoProvider, true);

            //Act
            musicSelectionForLabelAsLabel.DecrementCount();

            //Assert
            Assert.AreEqual(musicSelectionForLabelAsLabel.Count, 0);
        }