Exemplo n.º 1
0
        public void TestMusicSelectionInfoForLabelAsLabel_MethodDecrementCountThatIsAlreadyZero_ThrowsInvalidOperationException()
        {
            //Arrange
            MockMusicSelectionDetailsInfoProvider mockMusicSelectionDetailsInfoProvider =
                new MockMusicSelectionDetailsInfoProvider();
            MusicSelectionInfoForLabelAsLabel musicSelectionForLabelAsLabel =
                new MusicSelectionInfoForLabelAsLabel(mockMusicSelectionDetailsInfoProvider, true);

            //Act
            musicSelectionForLabelAsLabel.DecrementCount();
            musicSelectionForLabelAsLabel.DecrementCount();
        }
Exemplo n.º 2
0
        public void TestMusicSelectionInfoForLabelAsLabelConstructor_FieldCountSetProperly()
        {
            //Arrange
            MockMusicSelectionDetailsInfoProvider mockMusicSelectionDetailsInfoProvider =
                new MockMusicSelectionDetailsInfoProvider();

            //Act
            MusicSelectionInfoForLabelAsLabel musicSelectionForLabelAsLabel =
                new MusicSelectionInfoForLabelAsLabel(mockMusicSelectionDetailsInfoProvider, true);

            //Assert
            Assert.AreEqual(musicSelectionForLabelAsLabel.Count, 1);
        }
Exemplo n.º 3
0
        public void TestMusicSelectionInfoForLabelAsLabelConstructor_FieldMusicSelectionIdSetProperly()
        {
            //Arrange
            MockMusicSelectionDetailsInfoProvider mockMusicSelectionDetailsInfoProvider =
                new MockMusicSelectionDetailsInfoProvider();

            //Act
            MusicSelectionInfoForLabelAsLabel musicSelectionInfoForLabelAsLabel =
                new MusicSelectionInfoForLabelAsLabel(mockMusicSelectionDetailsInfoProvider, true);

            //Assert
            Assert.AreEqual(musicSelectionInfoForLabelAsLabel.MusicSelectionId, "522bb79455449d881b004d27");
        }
Exemplo n.º 4
0
        public void TestMusicSelectionInfoForLabelAsLabel_MethodIncrementCount()
        {
            //Arrange
            MockMusicSelectionDetailsInfoProvider mockMusicSelectionDetailsInfoProvider =
                new MockMusicSelectionDetailsInfoProvider();
            MusicSelectionInfoForLabelAsLabel musicSelectionForLabelAsLabel =
                new MusicSelectionInfoForLabelAsLabel(mockMusicSelectionDetailsInfoProvider, true);

            //Act
            musicSelectionForLabelAsLabel.IncrementCount();

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