Beispiel #1
0
        public void Execute_ExistingTypeConstructoreWithZeroParam_PublicMethodOneParameter()
        {
            //Build the SUT
            var am        = new AssemblyManager();
            var klass     = new NBi.Testing.Core.Assemblies.Resource.Klass();
            var paramDico = new Dictionary <string, object>()
            {
                { "paramString", "MyString" }
            };

            //Call the method to test
            var actual = am.Execute(klass, "ExecutePublicString", paramDico);

            //Assertion
            Assert.That(actual, Is.EqualTo("Executed"));
        }
Beispiel #2
0
        public void Execute_ExistingTypeConstructoreWithZeroParam_SeveralParameter()
        {
            //Build the SUT
            var am        = new AssemblyManager();
            var klass     = new NBi.Testing.Core.Assemblies.Resource.Klass();
            var paramDico = new Dictionary <string, object>()
            {
                //Reverse param order to ensure they are correctly re-ordered!
                { "paramEnum", "Beta" },
                { "paramDateTime", "2012-05-07" }
            };

            //Call the method to test
            var actual = am.Execute(klass, "ExecuteDoubleParam", paramDico);

            //Assertion
            Assert.That(actual, Is.EqualTo("Executed"));
        }