コード例 #1
0
ファイル: PackStreamTest.cs プロジェクト: Neo4Net/Neo4Net
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: private void assertPeekType(PackType type, Object value) throws java.io.IOException
        private void AssertPeekType(PackType type, object value)
        {
            // Given
            Machine machine = new Machine();

            PackStream.Packer packer = machine.Packer();
            DoTheThing(packer, value);
            packer.Flush();

            PackStream.Unpacker unpacker = NewUnpacker(machine.Output());

            // When & Then
            assertEquals(type, unpacker.PeekNextType());
        }