Ejemplo n.º 1
0
		public void ShouldSerializeWhenNotTouched()
		{
			var testedPeripheral = new PeripheralWithMappedSegment();
			var copy = Serializer.DeepClone(testedPeripheral);
			var segments = copy.MappedSegments.ToArray();
			foreach(var segment in segments)
			{
				Assert.AreEqual(IntPtr.Zero, segment.Pointer);
			}
		}
Ejemplo n.º 2
0
        public void ShouldSerializeWhenNotTouched()
        {
            var testedPeripheral = new PeripheralWithMappedSegment();
            var copy             = Serializer.DeepClone(testedPeripheral);
            var segments         = copy.MappedSegments.ToArray();

            foreach (var segment in segments)
            {
                Assert.AreEqual(IntPtr.Zero, segment.Pointer);
            }
        }