public void AnimationExtention_should_serialize_toggle_effect()
        {
            Effects effect = new Effects();

            effect.Container.Add(new ToggleEffect());

            _writer.Setup(w => w.Write(It.IsAny <string>())).Verifiable();

            _objectWriter.Start().Serialize("effects", effect);

            _writer.Verify(w => w.Write("effects:{list:[{name:'toggle'}],openDuration:200,closeDuration:200}"));
        }
        public void Start_should_write_id_type_and_opening_bracket()
        {
            _writer.Setup(w => w.Write("jQuery('#{0}').{1}(".FormatWith(Id, Type))).Verifiable();

            _objectWriter.Start();

            _writer.Verify();
        }