Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/22/10 00:44:01 (14 years ago)
Author:
swagner
Message:

Sorted usings and removed unused usings in entire solution (#1094)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.ProtobufCS/0.9.1/ProtobufCS/src/ProtocolBuffers.Test/CodedInputStreamTest.cs

    r3857 r4068  
    3737using Google.ProtocolBuffers.TestProtos;
    3838using NUnit.Framework;
    39 using System.Diagnostics;
    4039
    4140namespace Google.ProtocolBuffers {
     
    9897        input.ReadRawVarint32();
    9998        Assert.Fail("Should have thrown an exception.");
    100       } catch (InvalidProtocolBufferException e) {
     99      }
     100      catch (InvalidProtocolBufferException e) {
    101101        Assert.AreEqual(expected.Message, e.Message);
    102102      }
     
    106106        input.ReadRawVarint64();
    107107        Assert.Fail("Should have thrown an exception.");
    108       } catch (InvalidProtocolBufferException e) {
     108      }
     109      catch (InvalidProtocolBufferException e) {
    109110        Assert.AreEqual(expected.Message, e.Message);
    110111      }
     
    114115        CodedInputStream.ReadRawVarint32(new MemoryStream(data));
    115116        Assert.Fail("Should have thrown an exception.");
    116       } catch (InvalidProtocolBufferException e) {
     117      }
     118      catch (InvalidProtocolBufferException e) {
    117119        Assert.AreEqual(expected.Message, e.Message);
    118120      }
     
    327329        input.ReadBytes();
    328330        Assert.Fail("Should have thrown an exception!");
    329       } catch (InvalidProtocolBufferException) {
     331      }
     332      catch (InvalidProtocolBufferException) {
    330333        // success.
    331334      }
    332335    }
    333    
     336
    334337    private static TestRecursiveMessage MakeRecursiveMessage(int depth) {
    335338      if (depth == 0) {
     
    361364        TestRecursiveMessage.ParseFrom(data65);
    362365        Assert.Fail("Should have thrown an exception!");
    363       } catch (InvalidProtocolBufferException) {
     366      }
     367      catch (InvalidProtocolBufferException) {
    364368        // success.
    365369      }
     
    370374        TestRecursiveMessage.ParseFrom(input);
    371375        Assert.Fail("Should have thrown an exception!");
    372       } catch (InvalidProtocolBufferException) {
     376      }
     377      catch (InvalidProtocolBufferException) {
    373378        // success.
    374379      }
     
    386391        TestAllTypes.ParseFrom(input);
    387392        Assert.Fail("Should have thrown an exception!");
    388       } catch (InvalidProtocolBufferException) {
     393      }
     394      catch (InvalidProtocolBufferException) {
    389395        // success.
    390396      }
     
    401407        input.ReadRawByte();
    402408        Assert.Fail("Should have thrown an exception!");
    403       } catch (InvalidProtocolBufferException) {
     409      }
     410      catch (InvalidProtocolBufferException) {
    404411        // Success.
    405412      }
     
    411418        input.ReadRawBytes(16);  // Hits limit again.
    412419        Assert.Fail("Should have thrown an exception!");
    413       } catch (InvalidProtocolBufferException) {
     420      }
     421      catch (InvalidProtocolBufferException) {
    414422        // Success.
    415423      }
     
    422430    /// </summary>
    423431    [Test]
    424     public void ReadInvalidUtf8()  {
     432    public void ReadInvalidUtf8() {
    425433      MemoryStream ms = new MemoryStream();
    426434      CodedOutputStream output = CodedOutputStream.CreateInstance(ms);
Note: See TracChangeset for help on using the changeset viewer.