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

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

            //Assertion
            Assert.That(actual, Is.EqualTo("Executed"));
        }
Esempio n. 2
0
        public void Execute_ExistingTypeConstructoreWithZeroParam_PrivateMethodOneParameter()
        {
            //Build the SUT
            var am        = new AssemblyManager();
            var klass     = new NBi.Testing.Unit.Core.Assemblies.Resource.Klass();
            var paramDico = new Dictionary <string, object>();

            paramDico.Add("paramString", "MyString");

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

            //Assertion
            Assert.That(actual, Is.EqualTo("Executed"));
        }
Esempio n. 3
0
        public void Execute_ExistingTypeConstructoreWithZeroParam_SeveralParameter()
        {
            //Build the SUT
            var am        = new AssemblyManager();
            var klass     = new NBi.Testing.Unit.Core.Assemblies.Resource.Klass();
            var paramDico = new Dictionary <string, object>();

            //Reverse param order to ensure they are correctly re-ordered!
            paramDico.Add("paramEnum", "Beta");
            paramDico.Add("paramDateTime", "2012-05-07");

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

            //Assertion
            Assert.That(actual, Is.EqualTo("Executed"));
        }
Esempio n. 4
0
        public void Execute_ExistingTypeConstructoreWithZeroParam_SeveralParameter()
        {
            //Build the SUT
            var am = new AssemblyManager();
            var klass = new NBi.Testing.Unit.Core.Assemblies.Resource.Klass();
            var paramDico = new Dictionary<string, object>();

            //Reverse param order to ensure they are correctly re-ordered!
            paramDico.Add("paramEnum", "Beta");
            paramDico.Add("paramDateTime", "2012-05-07");

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

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