Inheritance: System.Attribute
Esempio n. 1
0
        public void ChillTestFixtureSetUp()
        {
            // find the with service attribute
            MemberInfo info = this.GetType();
            var attributes = (WithServiceAttribute[])info.GetCustomAttributes(typeof (WithServiceAttribute), true);
            if (attributes.Length < 1)
            {
                throw new InvalidOperationException("ServiceTestBase derived classes must have a WithService attribute.");
            }
            _withService = attributes[0];

            AppHarness.RunApplication(_withService.Path, _withService.Port);

            TestFixtureSetUp();
        }