Exemplo n.º 1
0
        public void adds_growl(string message, string type, string expected)
        {
            // call
            Growl.Add(_controller, message, type);

            // assert
            GrowlCollection.RenderScripts(_controller, growl => $"{growl.Message}|{growl.Type}", false).ToString().MustBe(expected);
        }
Exemplo n.º 2
0
        public void adds_multiple_growls()
        {
            // set-up
            Growl.Add(_controller, "message1", "type1");
            Growl.Add(_controller, "message2", "type2");

            // call
            string actual = GrowlCollection.RenderScripts(_controller, growl => $"{growl.Message}|{growl.Type}", false).ToString();

            // assert
            string expected = "message1|type1\r\nmessage2|type2";
        }