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

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

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

            EventTypes.ShouldBeEmpty();
            Toggle.Tags.ShouldBeEmpty();
        }
Example #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" });
        }
Example #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" });
        }