public void Should_throw_ArgumentNullException_when_converting_string_to_bytes_and_argument_is_null() { Assert.Throws <ArgumentException>(() => BytesService.StringToBytes(null)); }
public void Should_return_byte_array_from_string_correctly() { Assert.Equal(new byte[4] { 116, 101, 115, 116 }, BytesService.StringToBytes("test")); }