Skip to content

Commit

Permalink
fix: simplified SetHostVisibilityExceptionNetworkBehaviour test (#544)
Browse files Browse the repository at this point in the history
Co-authored-by: MrGadget1024 <chris@clevertech.net>
  • Loading branch information
MrGadget1024 and MrGadget1024 committed Jan 22, 2021
1 parent 382d0dd commit b7465a5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Assets/Tests/Editor/NetworkIdentityCallbackTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,10 @@ public class NetworkIdentityCallbackTests

class SetHostVisibilityExceptionNetworkBehaviour : NetworkVisibility
{
public int called;
public bool valuePassed;
public override void OnRebuildObservers(HashSet<INetworkConnection> observers, bool initialize) {}
public override bool OnCheckObserver(INetworkConnection conn) { return true; }
public override void OnSetHostVisibility(bool visible)
{
++called;
valuePassed = visible;
throw new Exception("some exception");
}
}
Expand Down

0 comments on commit b7465a5

Please sign in to comment.