Пример #1
0
 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));
 }
Пример #2
0
 public void OnErrorTest()
 {
     IObserver<Ship> obs = new BattleShipWoundedObserver(new Ship(1, 1, 1, 1, Player.player1));
     Assert.ThrowsException<NotImplementedException>(() => obs.OnError(new Exception()));
 }