예제 #1
0
        public void ShouldClonePosition()
        {
            StoragePosition position = new StoragePosition();
            StoragePosition cloned   = position.Clone();

            Assert.That(cloned, Is.Not.SameAs(position));
        }
예제 #2
0
파일: Storage.cs 프로젝트: amacal/collector
        public StorageAllocation Allocate()
        {
            StoragePosition   allocated  = position.Clone();
            StorageAllocation allocation = new StorageAllocation(memory, allocated);

            return(allocation);
        }