Beispiel #1
0
        public void When_changing_the_description_to_the_current_description()
        {
            CreateToggle();
            Toggle.ChangeDescription(Editor, Toggle.Description);

            EventTypes.ShouldBeEmpty();
        }
Beispiel #2
0
        public void When_renaming_to_the_current_name()
        {
            CreateToggle();
            Toggle.Rename(Editor, Toggle.Name);

            EventTypes.ShouldBeEmpty();
        }
Beispiel #3
0
        public void When_removing_a_non_existing_tag_to_a_toggle()
        {
            CreateToggle();
            Toggle.RemoveTag(Editor, "something");

            EventTypes.ShouldBeEmpty();
            Toggle.Tags.ShouldBeEmpty();
        }
Beispiel #4
0
        public void When_adding_a_toggle_which_differs_by_case()
        {
            CreateToggle(new TagAdded(Editor, "testing").AsAct());
            Toggle.AddTag(Editor, "TESTING");

            EventTypes.ShouldBeEmpty();
            Toggle.Tags.ShouldBe(new[] { "testing" });
        }
Beispiel #5
0
        public void When_adding_an_existing_tag_to_a_toggle()
        {
            CreateToggle(new TagAdded(Editor, "first-tag").AsAct());
            Toggle.AddTag(Editor, "first-tag");

            EventTypes.ShouldBeEmpty();
            Toggle.Tags.ShouldBe(new [] { "first-tag" });
        }