Example #1
0
 public void GetName_is_the_Label_if_it_exists()
 {
     var section = new Section("fixture1")
     {
         Label = "the label"
     };
     section.GetName().ShouldEqual("the label");
 }
Example #2
0
        public void GetName_is_the_Label_if_it_exists()
        {
            var section = new Section("fixture1")
            {
                Label = "the label"
            };

            section.GetName().ShouldEqual("the label");
        }
Example #3
0
        public void GetName_uses_the_name_property_from_the_fixture_object()
        {
            Section section = Section.For <StubFixture>();

            section.GetName().ShouldEqual(typeof(StubFixture).GetFixtureAlias());
        }
Example #4
0
        public void GetName_uses_the_fixture_name_if_it_exists()
        {
            var section = new Section("fixture1");

            section.GetName().ShouldEqual("fixture1");
        }
Example #5
0
 public void StartSection(Section section)
 {
     write("Starting Section {0}", section.GetName());
 }
Example #6
0
 public void GetName_uses_the_fixture_name_if_it_exists()
 {
     var section = new Section("fixture1");
     section.GetName().ShouldEqual("fixture1");
 }
Example #7
0
 public void StartSection(Section section)
 {
     write("Starting Section {0}", section.GetName());
 }
Example #8
0
 public override string ToString()
 {
     return(string.Join(",", Section.GetName(), X, Y));
 }