public void OnCheckObserverShouldBeFalseForDifferentMatchId() { string guid1 = Guid.NewGuid().ToString(); string guid2 = Guid.NewGuid().ToString(); SetMatchId(player1MatchChecker, new Guid(guid1)); SetMatchId(player2MatchChecker, new Guid(guid2)); bool player1VisableToPlayer1 = player1MatchChecker.OnCheckObserver(player1Connection); Assert.IsTrue(player1VisableToPlayer1); bool player2VisableToPlayer1 = player1MatchChecker.OnCheckObserver(player2Connection); Assert.IsFalse(player2VisableToPlayer1); bool player1VisableToPlayer2 = player2MatchChecker.OnCheckObserver(player1Connection); Assert.IsFalse(player1VisableToPlayer2); bool player2VisableToPlayer2 = player2MatchChecker.OnCheckObserver(player2Connection); Assert.IsTrue(player2VisableToPlayer2); }
public void OnCheckObserverShouldBeTrueForSameMatchId() { string guid = Guid.NewGuid().ToString(); SetMatchId(player1MatchChecker, new Guid(guid)); SetMatchId(player2MatchChecker, new Guid(guid)); bool player1Visable = player1MatchChecker.OnCheckObserver(player1Connection); Assert.IsTrue(player1Visable); bool player2Visable = player1MatchChecker.OnCheckObserver(player2Connection); Assert.IsTrue(player2Visable); }