예제 #1
0
        public void ParamList_SingleNullPassed()
        {
            var theObject1 = TheObjectFactory.Create <TheClass> (ParamList.Create((string)null));

            Assert.That(theObject1.ConstructionInfo, Is.EqualTo("Not even one string."));
        }
예제 #2
0
        public void ParamList_OtherNullPassed()
        {
            var theObject1 = TheObjectFactory.Create <TheClass> (ParamList.Create((string[])null));

            Assert.That(theObject1.ConstructionInfo, Is.EqualTo("Not many strings."));
        }
예제 #3
0
        public void ParamList_ArrayPassed()
        {
            var theObject1 = TheObjectFactory.Create <TheClass> (ParamList.Create(new[] { "my", "home", "is", "my", "castle" }));

            Assert.That(theObject1.ConstructionInfo, Is.EqualTo("Many strings: my, home, is, my, castle"));
        }