CreateResponseMessage() public method

public CreateResponseMessage ( PacketPayload payload ) : ResponseMessage
payload GladNet.Payload.PacketPayload
return GladNet.Message.ResponseMessage
        public static void Test_Throws_Exception_On_Null_Payload_Response()
        {
            //arrange
            NetworkMessageFactory factory = new NetworkMessageFactory();

            //assert
            Assert.Throws<ArgumentNullException>(() => factory.CreateResponseMessage(null));
        }
        public static void Test_Works_On_Valid_Payload_Response()
        {
            //arrange
            NetworkMessageFactory factory = new NetworkMessageFactory();

            //act
            ResponseMessage message = factory.CreateResponseMessage(Mock.Of<PacketPayload>());

            //assert
            Assert.NotNull(message);
        }