Example #1
0
        public void WritePacket_MatchesExpectedByteArray()
        {
            var packet = new JoinCompletePacket("C# Server", "1.5.7-01.0.0");

            var result = packet.Write();

            result.Should().Equal(this.testPacket);
        }
Example #2
0
    public void WritePacket2_MatchesExpectedByteArray()
    {
        var packet = new JoinCompletePacket("Slipe Server 0.1.0 [Windows]\0", "1.5.7-9.0.0");

        var result = packet.Write();

        result.Should().Equal(this.testPacket2);
    }