public void CanCreateInstance() { var testee = new BlobstoreStatistics(100, 200, 209715200, 1048576); testee.IdentifierCount.Should().Be(100); testee.FileCount.Should().Be(200); testee.TotalFileSizeInBytes.Should().Be(209715200); testee.TotalFileSizeInKiloBytes.Should().Be(204800); testee.TotalFileSizeInMegaBytes.Should().Be(200); testee.AverageFileSize.Should().Be(1048576); testee.AverageFileSizeInKiloBytes.Should().Be(1024); testee.AverageFileSizeInMegaBytes.Should().Be(1); }
public void OverridesToString() { var testee = new BlobstoreStatistics(42, 666, 209715200, 1048576); testee.ToString().Should().Be("666 files in 42 directories"); }