public void ShouldBeAbleToStartFromPartialyThroughNamespaces()
        {
            WhenTriggeringACompletion("Tests.");
            TheCompletionList
            .ShouldNotContain(c => c.DisplayText == "System")
            .ShouldNotContain(c => c.DisplayText == "SparkSense")
            .ShouldNotContain(c => c.DisplayText == "Tests")
            .ShouldContain(c => c.DisplayText == "Scenarios");

            WhenTriggeringACompletion("Tests.Scenarios.");
            TheCompletionList
            .ShouldNotContain(c => c.DisplayText == "System")
            .ShouldNotContain(c => c.DisplayText == "SparkSense")
            .ShouldNotContain(c => c.DisplayText == "Tests")
            .ShouldNotContain(c => c.DisplayText == "Scenarios")
            .ShouldNotContain(c => c.DisplayText == string.Empty);

            WhenTriggeringACompletion("Scenarios.");
            TheCompletionList
            .ShouldNotContain(c => c.DisplayText == "System")
            .ShouldNotContain(c => c.DisplayText == "SparkSense")
            .ShouldNotContain(c => c.DisplayText == "Tests")
            .ShouldNotContain(c => c.DisplayText == "Scenarios")
            .ShouldNotContain(c => c.DisplayText == string.Empty);
        }
 public void ShouldNotIncludeTypesThemselvesInTheCompletionList()
 {
     WhenTriggeringACompletion("SparkSense.");
     TheCompletionList
     .ShouldNotContain(c => c.DisplayText == "StubType")
     .ShouldNotContain(c => c.DisplayText == "String")
     .ShouldNotContain(c => c.DisplayText == "Int32");
 }
        public void ShouldContainInstanceMembersOfSparkViewType()
        {
            WhenTriggeringAnInitialCompletion();
            TheCompletionList
            .ShouldNotContain(c => c.DisplayText == "_sparkViewContext")
            .ShouldContain(c => c.DisplayText == "SparkViewContext");

            TheCompletionList.ShouldContain(c => c.DisplayText == "OutputScope");
        }
        public void ShouldIncludeTypesWithPublicMembersInTheCompletionList()
        {
            WhenTriggeringAnInitialCompletion();
            TheCompletionList.ShouldNotContain(c => c.DisplayText == "StubPrivateType");

            TheCompletionList.ShouldContain(c => c.DisplayText == "StubTypeWithNoStatics");
            TheCompletionList.ShouldContain(c => c.DisplayText == "StubType");
            TheCompletionList.ShouldContain(c => c.DisplayText == "String");
            TheCompletionList.ShouldContain(c => c.DisplayText == "Int32");
        }
 public void ShouldNotIncludeAnyEmptyItemsInTheCompletionList()
 {
     WhenTriggeringACompletion("SparkSense.Tests.Scenarios.");
     TheCompletionList.ShouldNotContain(c => c.DisplayText == string.Empty);
 }