public void Converts_String_Correctly()
        {
            TestClass sampleObj = new TestClass(1, 1);
            string    res       = JsonConvert.SerializeObject(sampleObj);

            byte[] expectedRes = Encoding.UTF8.GetBytes(res);

            PocoToBytesConverter <TestClass> converter = new PocoToBytesConverter <TestClass>();

            byte[] actualRes = converter.Convert(sampleObj);

            Assert.Equal(expectedRes, actualRes);
        }
        public void NullString_Throws_Exception()
        {
            PocoToBytesConverter <TestClass> converter = new PocoToBytesConverter <TestClass>();

            Assert.Throws <ArgumentNullException>(() => converter.Convert(null));
        }