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"]); }
public void SelectedTextToUpper() { var action = new ToUpperCase(); action.Execute(editorBox.ActiveTextAreaControl.TextArea); }
public void ToUpper_Test() { Assert.Equal("HALO", ToUpperCase.ToUpper("halo")); }