public void Test_GetFormat_Binary_Succeeds() { var transcoder = new RawBinaryTranscoder(); var flags = transcoder.GetFormat(new byte[] { 0x0 }); Assert.Equal(DataFormat.Binary, flags.DataFormat); }
public void Test_GetFormat_Object_Fails() { var transcoder = new RawBinaryTranscoder(); Assert.Throws <InvalidOperationException>(() => transcoder.GetFormat(new object())); }