Initialize() 공개 메소드

public Initialize ( string name, System configValue ) : void
name string
configValue System
리턴 void
 public void TestInitializationWithNullConfigValue()
 {
     var provider = new PlainTextBlogEntryEditorProvider();
     UnitTestHelper.AssertThrowsArgumentNullException(() =>
                                                        provider.Initialize("PlainTextProvider", null)
         );
 }
 public void TestInitialization()
 {
     var provider = new PlainTextBlogEntryEditorProvider();
     NameValueCollection coll = GetNameValueCollection();
     provider.Initialize("PlainTextProvider", coll);
     provider.InitializeControl(new Mock<ISubtextContext>().Object);
     Assert.IsTrue(provider.RichTextEditorControl.GetType() == typeof(TextBox));
     var txt = provider.RichTextEditorControl as TextBox;
     Assert.AreEqual(provider.Name, "PlainTextProvider");
     Assert.AreEqual(txt.Rows, 10);
     Assert.AreEqual(txt.Columns, 70);
     Assert.AreEqual(txt.CssClass, "myCssClass");
 }