public void ShouldClearCheckDefaultMusicCheckbox() { // arrange // act _Control.Initialize(_FullBuildMusicOptions.Object); // assert Assert.IsFalse(_Control.DefaultMusicDuringBuild, "Music was selected, but the DefaultMusicDuringBuild checkbox was checked"); }
public void ShouldCheckDefaultMusicCheckbox() { // arrange // act _Control.Initialize(_EmptyBuildMusicOptions.Object); // assert Assert.IsTrue(_Control.DefaultMusicDuringBuild, "No music was selected, but the DefaultMusicDuringBuild checkbox was not checked"); }
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"); }
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"); }