Exemple #1
0
        public void ModBus_ApplicationLayerPluginHelperConstructorTest()
        {
            Type tp = typeof(ModBus_ApplicationLayerPluginHelper);

            Assert.AreEqual(tp.GUID.CompareTo(new Guid("1c38514b-6801-44de-aab9-1e406b3aae77")), 0, "Guid does not much");
            try
            {
                ModBus_ApplicationLayerPluginHelper target = new ModBus_ApplicationLayerPluginHelper();
            }
            catch (System.ComponentModel.LicenseException ex)
            {
                TestContext.WriteLine(ex.Message);
                Assert.IsTrue(true);
            }
        }
        public void ModBus_ApplicationLayerPluginHelperConstructorTest()
        {
            Type tp = typeof(ModBus_ApplicationLayerPluginHelper);

            Assert.AreEqual(tp.GUID.CompareTo(new Guid("746aa023-ece4-427e-bece-db0845716029")), 0, "Guid odes not much");
            try
            {
                ModBus_ApplicationLayerPluginHelper target = new ModBus_ApplicationLayerPluginHelper();
            }
            catch (System.ComponentModel.LicenseException ex)
            {
                TestContext.WriteLine("Text of expected license exception");
                TestContext.WriteLine(ex.Message);
                Assert.IsTrue(true);
            }
        }