コード例 #1
0
        public void SimpleData()
        {
            var entity = new Entity("contact", Guid.NewGuid())
            {
                ["firstname"]  = "РОМАН",
                ["lastname"]   = "копаев-ЗаДуНайский",
                ["middlename"] = "анатольевич"
            };
            IPluginExecutionContext context         = new FakePluginExecutionContext(entity);
            IServiceProvider        serviceProvider = new FakeServiceProvider(context);

            var plugin = new ToUpperCase(CONFIG_STR);

            plugin.Execute(serviceProvider);

            var result = context.GetContextEntity();

            Assert.AreEqual("РОМАН", result["firstname"]);
            Assert.AreEqual("КОПАЕВ-ЗАДУНАЙСКИЙ", result["lastname"]);
            Assert.AreEqual("АНАТОЛЬЕВИЧ", result["middlename"]);
        }
コード例 #2
0
ファイル: TextEditor.cs プロジェクト: BuckeyeDude/Wabbitcode
        public void SelectedTextToUpper()
        {
            var action = new ToUpperCase();

            action.Execute(editorBox.ActiveTextAreaControl.TextArea);
        }
コード例 #3
0
 public void ToUpper_Test()
 {
     Assert.Equal("HALO", ToUpperCase.ToUpper("halo"));
 }