Esempio n. 1
0
        public void ShouldClonePosition()
        {
            StoragePosition position = new StoragePosition();
            StoragePosition cloned   = position.Clone();

            Assert.That(cloned, Is.Not.SameAs(position));
        }
Esempio n. 2
0
        public StorageAllocation Allocate()
        {
            StoragePosition   allocated  = position.Clone();
            StorageAllocation allocation = new StorageAllocation(memory, allocated);

            return(allocation);
        }