public void determine_name()
        {
            var scanner = new RubySampleScanner();

            scanner.DetermineName("# SAMPLE: States").ShouldBe("States");
            scanner.DetermineName("     # SAMPLE: States").ShouldBe("States");
            scanner.DetermineName("    # SAMPLE: States").ShouldBe("States");
            scanner.DetermineName("Texas").ShouldBeNull();
            scanner.DetermineName("SAMPLE:").ShouldBeNull();
        }
        public void is_at_end()
        {
            var scanner = new RubySampleScanner();
            scanner.IsAtEnd("# ENDSAMPLE").ShouldBeTrue();

            scanner.IsAtEnd("# SAMPLE: States").ShouldBeFalse();
            scanner.IsAtEnd("Texas").ShouldBeFalse();
            scanner.IsAtEnd("ENDSAMPLE").ShouldBeFalse();
            scanner.IsAtEnd("// Something else").ShouldBeFalse();
        }