Skip to content

Commit a3e3e52

Browse files
docs: Quick fix for clearer instructions in integration tests [skip ci] (#2077)
1 parent b91cf27 commit a3e3e52

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

com.unity.netcode.gameobjects/TestHelpers/Runtime/NetcodeIntegrationTest.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -869,12 +869,14 @@ public NetcodeIntegrationTest()
869869
/// Constructor that allows you To break tests up as a host
870870
/// and a server.
871871
/// Example: Decorate your child derived class with TestFixture
872-
/// and then create a constructor at the child level
872+
/// and then create a constructor at the child level.
873+
/// Don't forget to set your constructor public, else Unity will
874+
/// give you a hard to decipher error
873875
/// [TestFixture(HostOrServer.Host)]
874876
/// [TestFixture(HostOrServer.Server)]
875877
/// public class MyChildClass : NetcodeIntegrationTest
876878
/// {
877-
/// MyChildClass(HostOrServer hostOrServer) : base(hostOrServer) { }
879+
/// public MyChildClass(HostOrServer hostOrServer) : base(hostOrServer) { }
878880
/// }
879881
/// </summary>
880882
/// <param name="hostOrServer"></param>

0 commit comments

Comments
 (0)