Esempio n. 1
0
        public void NormalOutputTest()
        {
            var encoder = new DataEncoder();

            Assert.AreEqual(1, encoder.EncodeGenerateResponse(true).Length);
            Assert.AreEqual(1, encoder.EncodeGenerateResponse(true)[0]);

            Assert.AreEqual(1, encoder.EncodeGenerateResponse(false).Length);
            Assert.AreEqual(0, encoder.EncodeGenerateResponse(false)[0]);
        }