public void ControlsCollection() { LiteralPoker p = new LiteralPoker(); Assert.AreEqual(p.ControlCollection().GetType(), typeof(EmptyControlCollection), "A1"); }
public void AddParsedSubObject2() { LiteralPoker p = new LiteralPoker(true); p.Text = "hey"; p.ParsedSubObject(p); }
public void AddParsedSubObject3() { LiteralPoker p = new LiteralPoker(true); p.ParsedSubObject(new LiteralControl("Hey!")); Assert.AreEqual(0, p.Controls.Count, "#01"); Assert.AreEqual("Hey!", p.Text, "#02"); }
public void ViewState() { LiteralPoker p = new LiteralPoker(); p.Text = "foo"; LiteralPoker copy = new LiteralPoker(); copy.LoadState(p.SaveState()); Assert.AreEqual(copy.Text, "foo", "A1"); }
public void TextProperty() { LiteralPoker p = new LiteralPoker(); Assert.AreEqual(p.Text, String.Empty, "A1"); p.Text = "foo"; Assert.AreEqual(p.Text, "foo", "A2"); p.Text = null; Assert.AreEqual(p.Text, String.Empty, "A3"); }
public void TextProperty () { LiteralPoker p = new LiteralPoker (); Assert.AreEqual (p.Text, String.Empty, "A1"); p.Text = "foo"; Assert.AreEqual (p.Text, "foo", "A2"); p.Text = null; Assert.AreEqual (p.Text, String.Empty, "A3"); }
public void AddParsedSubObject1() { LiteralPoker p = new LiteralPoker(true); p.ParsedSubObject(this); }
public void ViewState () { LiteralPoker p = new LiteralPoker (); p.Text = "foo"; LiteralPoker copy = new LiteralPoker (); copy.LoadState (p.SaveState ()); Assert.AreEqual (copy.Text, "foo", "A1"); }
public void AddParsedSubObject3 () { LiteralPoker p = new LiteralPoker (true); p.ParsedSubObject (new LiteralControl ("Hey!")); Assert.AreEqual (0, p.Controls.Count, "#01"); Assert.AreEqual ("Hey!", p.Text, "#02"); }
public void AddParsedSubObject2 () { LiteralPoker p = new LiteralPoker (true); p.Text = "hey"; p.ParsedSubObject (p); }
public void AddParsedSubObject1 () { LiteralPoker p = new LiteralPoker (true); p.ParsedSubObject (this); }
public void ControlsCollection () { LiteralPoker p = new LiteralPoker (); Assert.AreEqual (p.ControlCollection ().GetType (), typeof (EmptyControlCollection), "A1"); }