Ejemplo n.º 1
0
        public void Test_GetFormat_Binary_Succeeds()
        {
            var transcoder = new RawBinaryTranscoder();

            var flags = transcoder.GetFormat(new byte[] { 0x0 });

            Assert.Equal(DataFormat.Binary, flags.DataFormat);
        }
Ejemplo n.º 2
0
        public void Test_GetFormat_Object_Fails()
        {
            var transcoder = new RawBinaryTranscoder();

            Assert.Throws <InvalidOperationException>(() => transcoder.GetFormat(new object()));
        }