public void SizeofPayloadCalculations(string inputstring, int bytelength) { var calc = new SizeOf(); var result = calc.SizeofPayload(inputstring); Assert.Equal(bytelength, result); }