Пример #1
0
        public void IdentifyTheCorrectSizeOfAStructure()
        {
            var target = new MarshallingService();
            var result = target.SizeOf <StubStructure>();

            Assert.AreEqual(32, result);
        }
Пример #2
0
        public void IdentifyTheCorrectSizeOfAnInteger()
        {
            var target = new MarshallingService();
            var result = target.SizeOf <int>();

            Assert.AreEqual(4, result);
        }