public void Test_CreatePropRule_WhenTypeIsInt64_ShouldConstruct()
        {
            //---------------Set up test pack-------------------
            var xmlRuleLoaderSpy = new XmlRuleLoaderSpy();
            //---------------Assert Precondition----------------

            //---------------Execute Test ----------------------
            var createdPropRule = xmlRuleLoaderSpy.CallCreatePropRule("System.Int64");

            //---------------Test Result -----------------------
            Assert.IsNotNull(createdPropRule);
            Assert.IsInstanceOf <PropRuleLong>(createdPropRule);
        }
        public void Test_CreatePropRule_WhenTypeIsString_ShouldConstruct()
        {
            //---------------Set up test pack-------------------
            var xmlRuleLoaderSpy = new XmlRuleLoaderSpy();
            //---------------Assert Precondition----------------

            //---------------Execute Test ----------------------
            const string expectedRuleName = "MyRule";
            var          createdPropRule  = xmlRuleLoaderSpy.CallCreatePropRule("System.String", expectedRuleName);

            //---------------Test Result -----------------------
            Assert.IsNotNull(createdPropRule);
            Assert.IsInstanceOf <PropRuleString>(createdPropRule);
            Assert.AreEqual(expectedRuleName, createdPropRule.Name);
        }
        public void Test_CreatePropRule_WhenTypeIsInt64_ShouldConstruct()
        {
            //---------------Set up test pack-------------------
            var xmlRuleLoaderSpy = new XmlRuleLoaderSpy();
            //---------------Assert Precondition----------------

            //---------------Execute Test ----------------------
            var createdPropRule = xmlRuleLoaderSpy.CallCreatePropRule("System.Int64");
            //---------------Test Result -----------------------
            Assert.IsNotNull(createdPropRule);
            Assert.IsInstanceOf<PropRuleLong>(createdPropRule);
        }
        public void Test_CreatePropRule_WhenTypeIsString_ShouldConstruct()
        {
            //---------------Set up test pack-------------------
            var xmlRuleLoaderSpy = new XmlRuleLoaderSpy();
            //---------------Assert Precondition----------------

            //---------------Execute Test ----------------------
            const string expectedRuleName = "MyRule";
            var createdPropRule = xmlRuleLoaderSpy.CallCreatePropRule("System.String", expectedRuleName);
            //---------------Test Result -----------------------
            Assert.IsNotNull(createdPropRule);
            Assert.IsInstanceOf<PropRuleString>(createdPropRule);
            Assert.AreEqual(expectedRuleName, createdPropRule.Name);
        }