Esempio n. 1
0
        public void GetRequiredOptionNullOption()
        {
            MessengerProviderNode node      = new MessengerProviderNode("SimpleMessenger", "Nohros.Test.Toolkit.Messaging.SimpleMessenger, nohros.test.desktop");
            SimpleMessenger       messenger = Messenger.CreateInstance(node) as SimpleMessenger;

            Assert.IsNotNull(messenger);
            messenger.GetRequiredOptionNull();
        }
Esempio n. 2
0
        public void CreateInstanceNullOptions()
        {
            MessengerProviderNode node = new MessengerProviderNode("SimpleMessenger", "Nohros.Test.Toolkit.Messaging.SimpleMessenger, nohros.test.desktop");

            node.Options = null;
            SimpleMessenger messenger = Messenger.CreateInstance(node) as SimpleMessenger;

            Assert.IsNotNull(messenger);
        }
Esempio n. 3
0
        public void GetRequiredOption()
        {
            MessengerProviderNode node = new MessengerProviderNode("SimpleMessenger", "Nohros.Test.Toolkit.Messaging.SimpleMessenger, nohros.test.desktop");

            node.Options = new Dictionary <string, string>();
            node.Options["required-option-name"] = "required-option-value";
            SimpleMessenger messenger = Messenger.CreateInstance(node) as SimpleMessenger;

            Assert.IsNotNull(messenger);
            Assert.AreEqual("required-option-value", messenger.GetRequiredOption("required-option-name"));
        }