AddText() public method

public AddText ( string text ) : void
text string
return void
Ejemplo n.º 1
0
		public void ProvideValueInconsistent3 ()
		{
			var x = new ArrayExtension (new int [] {1, 3});
			x.AddText ("test");
			x.ProvideValue (null);
		}
Ejemplo n.º 2
0
		public void AddTextInconsistent ()
		{
			var x = new ArrayExtension (new int [] {1, 3});
			Assert.AreEqual (typeof (int), x.Type, "#1");
			x.AddText ("test");
			x.AddText (null); // allowed
			Assert.AreEqual (4, x.Items.Count);
			Assert.AreEqual (typeof (int), x.Type, "#2");
		}