Пример #1
0
        public void Return_null_for_type_that_doesnt_exist()
        {
            var finder      = new XenMessageFinder();
            var doesntExist = finder.Find("something_123");

            Assert.IsNull(doesntExist);

            var nullPassed = finder.Find(null);

            Assert.IsNull(nullPassed);
        }
Пример #2
0
        public void Return_null_for_non_XenMessages()
        {
            var finder = new XenMessageFinder();
            var result = finder.Find(nameof(TestClass));

            Assert.IsNull(result);
        }
Пример #3
0
        public void Find_class_that_inherits_XenMessage()
        {
            var finder = new XenMessageFinder();
            var result = finder.Find(nameof(TestXenMessage));

            Assert.IsNotNull(result);
        }