Пример #1
0
        public void TryGetService()
        {
            var algorithm = new TestAlgorithm();

            Assert.IsTrue(algorithm.TryGetService(out TestService service));
            Assert.IsInstanceOf <TestService>(service);

            Assert.IsFalse(algorithm.TryGetService <TestNotInService>(out _));
        }