public void ThenShouldClearOtherDuringBuildMusic()
        {
            // arrange
            _Control.Initialize(_BuildMusicOptions.Object);
            _Control.DefaultMusicDuringBuild = true;

            // act
            _Control.PersistDuringMusicSelection();

            // assert
            Assert.AreEqual(MusicPlayer.DefaultFileName, _BuildMusicOptions.Object.DuringBuildMusic, "Did not clear out the during build music setting");
        }
Пример #2
0
        public void ThenShouldPersistOtherDuringBuildMusic()
        {
            // arrange
            _Control.Initialize(_BuildMusicOptions.Object, _FileHandler.Object);
            _Control.DefaultMusicDuringBuild = false;
            _Control.OtherMusicDuringBuild   = otherBuildMusic;

            // act
            _Control.PersistDuringMusicSelection();

            // assert
            Assert.AreEqual(otherBuildMusic, _BuildMusicOptions.Object.DuringBuildMusic, "Did not clear out the during build music setting");
        }