Exemplo n.º 1
0
        public void TestStateTypeProperty()
        {
            var obj = new ActionImpl();

            Assert.That(obj.StateType, Is.EqualTo(VariantType.Int32));
            Assert.That(obj.GetProperty("state-type"), Is.EqualTo(VariantType.Int32));
        }
Exemplo n.º 2
0
        public void TestStateProperty()
        {
            var obj = new ActionImpl();

            Assert.That((int)obj.State, Is.EqualTo(2));
            Assert.That((int)obj.GetProperty("state"), Is.EqualTo(2));
        }
Exemplo n.º 3
0
        public void TestNameProperty()
        {
            var obj = new ActionImpl();

            Assert.That(obj.Name, Is.EqualTo("TestActionName"));
            Assert.That(obj.GetProperty("name"), Is.EqualTo("TestActionName"));
        }
Exemplo n.º 4
0
        public void TestParameterTypeProperty()
        {
            var obj = new ActionImpl();

            Assert.That(obj.ParameterType, Is.EqualTo(VariantType.Int32));
            Assert.That(obj.GetProperty("parameter-type"), Is.EqualTo(VariantType.Int32));
        }
Exemplo n.º 5
0
        public void TestEnabledProperty()
        {
            var obj = new ActionImpl();

            Assert.That(obj.Enabled, Is.True);
            Assert.That(obj.GetProperty("enabled"), Is.True);
        }