Exemple #1
0
        public void InitializedTypeEnforcesResetOfStatistics()
        {
            StreamPart.Create();

            StreamPartStatistics.InitializeType();

            Assert.That(StreamPartStatistics.StreamPartsCurrentlyInMemory, Is.EqualTo(0));
            Assert.That(StreamPartStatistics.StreamPartsCurrentlyDisposed, Is.EqualTo(0));
            Assert.That(StreamPartStatistics.StreamPartsCreatedTotal, Is.EqualTo(0));
            Assert.That(StreamPartStatistics.StreamPartsCreatedAsNew, Is.EqualTo(0));
            Assert.That(StreamPartStatistics.StreamPartsCreatedFromDisposed, Is.EqualTo(0));
        }
 public void ResetStreamPart()
 {
     StreamPart.InitializeType();
     StreamPartStatistics.InitializeType();
 }