Пример #1
0
        public void TestConstructor()
        {
            const string Name = "ProviderProxyName";
            const string InfoClass = "Namespace1.Namespace2.ClassName";
            var instance = new Dhgms.Nucleotide.Model.Info.ProviderProxy(Name, InfoClass);

            Assert.AreEqual(Name, instance.Name);
            Assert.AreEqual(InfoClass, instance.InfoClass);
        }
Пример #2
0
        public void TestNameProperty()
        {
            const string Name = "ProviderProxyName";
            var instance = new Dhgms.Nucleotide.Model.Info.ProviderProxy(null, null);

            Assert.IsNull(instance.Name);
            Assert.IsNull(instance.InfoClass);

            instance.Name = Name;
            Assert.AreEqual(Name, instance.Name);
            Assert.IsNull(instance.InfoClass);
        }
Пример #3
0
        public void TestInfoClassProperty()
        {
            const string InfoClass = "Namespace1.Namespace2.ClassName";
            var instance = new Dhgms.Nucleotide.Model.Info.ProviderProxy(null, null);

            Assert.IsNull(instance.Name);
            Assert.IsNull(instance.InfoClass);

            instance.InfoClass = InfoClass;
            Assert.AreEqual(InfoClass, instance.InfoClass);
            Assert.IsNull(instance.Name);
        }