Exemplo n.º 1
0
 protected State(Vcr vcr)
 {
     if (vcr == null)
     {
         throw new ArgumentNullException(nameof(vcr));
     }
     Vcr = vcr;
 }
Exemplo n.º 2
0
        public void PlayWhenRecording_ShouldKeepRecording()
        {
            // Arrange
            var sut = new Vcr();
            sut.Record();

            // Act
            sut.Play();
        }
Exemplo n.º 3
0
        public void PlayWhenRecording_ShouldKeepRecording()
        {
            // Arrange
            var sut = new Vcr();

            sut.Record();

            // Act
            sut.Play();
        }
Exemplo n.º 4
0
        public void RecordWhenRecording_ShouldKeepRecording()
        {
            // Arrange
            var sut = new Vcr();
            sut.Record();

            // Act
            sut.Record();

            // Assert
            Assert.AreEqual(sut.RecordingState, sut.State);
        }
Exemplo n.º 5
0
        public void PlayWhenStopped_ShouldPlay()
        {
            // Arrange
            var sut = new Vcr();
            sut.Stop();

            // Act
            sut.Play();

            // Assert
            Assert.AreEqual(sut.PlayingState, sut.State);
        }
Exemplo n.º 6
0
        public void PlayWhenStopped_ShouldPlay()
        {
            // Arrange
            var sut = new Vcr();

            sut.Stop();

            // Act
            sut.Play();

            // Assert
            Assert.AreEqual(sut.PlayingState, sut.State);
        }
Exemplo n.º 7
0
        public void RecordWhenPlaying_ShouldKeepPlaying()
        {
            // Arrange
            var sut = new Vcr();

            sut.Play();

            // Act
            sut.Record();

            // Assert
            Assert.AreEqual(sut.PlayingState, sut.State);
        }
Exemplo n.º 8
0
 public StoppedState(Vcr vcr)
     : base(vcr)
 {
 }
Exemplo n.º 9
0
 public RecordingState(Vcr vcr)
     : base(vcr)
 {
 }
Exemplo n.º 10
0
 public StoppedState(Vcr vcr) : base(vcr)
 {
 }
Exemplo n.º 11
0
 public RecordingState(Vcr vcr) : base(vcr)
 {
 }
Exemplo n.º 12
0
 protected State(Vcr vcr)
 {
     if (vcr == null) throw new ArgumentNullException(nameof(vcr));
     Vcr = vcr;
 }
Exemplo n.º 13
0
 public PlayingState(Vcr vcr) : base(vcr)
 {
 }
Exemplo n.º 14
0
 public PlayingState(Vcr vcr)
     : base(vcr)
 {
 }