~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to external/ngit/NGit.Test/NGit.Util.IO/TimeoutInputStreamTest.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
using System.Threading;
46
46
using NGit.Util;
47
47
using NGit.Util.IO;
 
48
using NUnit.Framework;
48
49
using Sharpen;
49
50
 
50
51
namespace NGit.Util.IO
132
133
                        byte[] act = new byte[exp.Length];
133
134
                        @out.Write(exp);
134
135
                        IOUtil.ReadFully(@is, act, 0, act.Length);
135
 
                        NUnit.Framework.Assert.IsTrue(Arrays.Equals(exp, act));
 
136
                         CollectionAssert.AreEquivalent(exp, act);
136
137
                }
137
138
 
138
139
                /// <exception cref="System.IO.IOException"></exception>
145
146
                        IOUtil.ReadFully(@is, act, 0, 1);
146
147
                        IOUtil.ReadFully(@is, act, 1, 1);
147
148
                        IOUtil.ReadFully(@is, act, 2, 1);
148
 
                        NUnit.Framework.Assert.IsTrue(Arrays.Equals(exp, act));
 
149
                         CollectionAssert.AreEquivalent(exp, act);
149
150
                }
150
151
 
151
152
                /// <exception cref="System.IO.IOException"></exception>