public void OnNextTest() { IObserver<Ship> obs = new BattleShipWoundedObserver(new Ship(1, 1, 1, 1, Player.player1)); obs.OnNext(new Ship(1, 1, 1, 1, Player.player2)); }
public void OnErrorTest() { IObserver<Ship> obs = new BattleShipWoundedObserver(new Ship(1, 1, 1, 1, Player.player1)); Assert.ThrowsException<NotImplementedException>(() => obs.OnError(new Exception())); }