Ejemplo n.º 1
0
        public void ServiceDescription_StatefulDescriptionIsParsed()
        {
            ServiceDescription expected = StatefulServiceDescriptionTest.HelperInstance.CreateDefaultDescription();

            using (var pc = new PinCollection())
            {
                IntPtr native = expected.ToNative(pc);

                ServiceDescription actual = ServiceDescription.CreateFromNative(native);

                HelperInstance.Compare(expected, actual);
            }
        }