public void TestMusicSelectionInfoForLabelAsLabel_MethodDecrementCountThatIsAlreadyZero_ThrowsInvalidOperationException() { //Arrange MockMusicSelectionDetailsInfoProvider mockMusicSelectionDetailsInfoProvider = new MockMusicSelectionDetailsInfoProvider(); MusicSelectionInfoForLabelAsLabel musicSelectionForLabelAsLabel = new MusicSelectionInfoForLabelAsLabel(mockMusicSelectionDetailsInfoProvider, true); //Act musicSelectionForLabelAsLabel.DecrementCount(); musicSelectionForLabelAsLabel.DecrementCount(); }
public void TestMusicSelectionInfoForLabelAsLabel_MethodDecrementCount() { //Arrange MockMusicSelectionDetailsInfoProvider mockMusicSelectionDetailsInfoProvider = new MockMusicSelectionDetailsInfoProvider(); MusicSelectionInfoForLabelAsLabel musicSelectionForLabelAsLabel = new MusicSelectionInfoForLabelAsLabel(mockMusicSelectionDetailsInfoProvider, true); //Act musicSelectionForLabelAsLabel.DecrementCount(); //Assert Assert.AreEqual(musicSelectionForLabelAsLabel.Count, 0); }