public void ParamList_SingleNullPassed() { var theObject1 = TheObjectFactory.Create <TheClass> (ParamList.Create((string)null)); Assert.That(theObject1.ConstructionInfo, Is.EqualTo("Not even one string.")); }
public void ParamList_OtherNullPassed() { var theObject1 = TheObjectFactory.Create <TheClass> (ParamList.Create((string[])null)); Assert.That(theObject1.ConstructionInfo, Is.EqualTo("Not many strings.")); }
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")); }