Exemplo n.º 1
0
        public virtual void TestWrite()
        {
            long           length         = 11111;
            long           fileCount      = 22222;
            long           directoryCount = 33333;
            long           quota          = 44444;
            long           spaceConsumed  = 55555;
            long           spaceQuota     = 66666;
            ContentSummary contentSummary = new ContentSummary.Builder().Length(length).FileCount
                                                (fileCount).DirectoryCount(directoryCount).Quota(quota).SpaceConsumed(spaceConsumed
                                                                                                                      ).SpaceQuota(spaceQuota).Build();
            BinaryWriter writer  = Org.Mockito.Mockito.Mock <BinaryWriter>();
            InOrder      inOrder = Org.Mockito.Mockito.InOrder(@out);

            contentSummary.Write(@out);
            inOrder.Verify(@out).WriteLong(length);
            inOrder.Verify(@out).WriteLong(fileCount);
            inOrder.Verify(@out).WriteLong(directoryCount);
            inOrder.Verify(@out).WriteLong(quota);
            inOrder.Verify(@out).WriteLong(spaceConsumed);
            inOrder.Verify(@out).WriteLong(spaceQuota);
        }