コード例 #1
0
		public void Resize()
		{
			DiscreteCollection col = new DiscreteCollection(byte.MaxValue, byte.MaxValue);
			Assert.AreEqual(16, col.Count);
			col.RemoveAt(3);
			Assert.AreEqual(15, col.Count);
		}
コード例 #2
0
        public void Resize()
        {
            DiscreteCollection col = new DiscreteCollection(byte.MaxValue, byte.MaxValue);

            Assert.Equal(16, col.Count);
            col.RemoveAt(3);
            Assert.Equal(15, col.Count);
        }
コード例 #3
0
		public void BytesPersistence()
		{
			DiscreteCollection col = new DiscreteCollection(byte.MaxValue, byte.MaxValue);
			Assert.AreEqual(16, col.Count);
			byte[] originalBytes = col.NetworkBytes;
			col.RemoveAt(3);
			Assert.AreEqual(15, col.Count);
			Assert.AreNotEqual(originalBytes, col.NetworkBytes);
		}
コード例 #4
0
        public void BytesPersistence()
        {
            DiscreteCollection col = new DiscreteCollection(byte.MaxValue, byte.MaxValue);

            Assert.Equal(16, col.Count);
            byte[] originalBytes = col.NetworkBytes;
            col.RemoveAt(3);
            Assert.Equal(15, col.Count);
            Assert.NotEqual <byte[]>(originalBytes, col.NetworkBytes);
        }