//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void testCanPackAndUnpackNull() throws Throwable //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: internal virtual void TestCanPackAndUnpackNull() { // Given Machine machine = new Machine(); // When machine.Packer().packNull(); machine.Packer().flush(); // Then sbyte[] bytes = machine.Output(); assertThat(bytes, equalTo(new sbyte[] { unchecked (( sbyte )0xC0) })); // When PackStream.Unpacker unpacker = NewUnpacker(bytes); unpacker.UnpackNull(); // Then // it does not blow up }