public void CurrentException2() 
 {
   ComplexFloatVector test = new ComplexFloatVector(new ComplexFloat[2]{1f,2f});
   IEnumerator enumerator = test.GetEnumerator();
   enumerator.MoveNext();
   enumerator.MoveNext();
   enumerator.MoveNext();
   object value=enumerator.Current;
 }
 public void Current()
 {
   ComplexFloatVector test = new ComplexFloatVector(new ComplexFloat[2]{1f,2f});
   IEnumerator enumerator = test.GetEnumerator();
   bool movenextresult;
   
   movenextresult=enumerator.MoveNext();
   Assert.IsTrue(movenextresult);
   Assert.AreEqual(enumerator.Current,test[0]);
   
   movenextresult=enumerator.MoveNext();
   Assert.IsTrue(movenextresult);
   Assert.AreEqual(enumerator.Current,test[1]);
   
   movenextresult=enumerator.MoveNext();
   Assert.IsFalse(movenextresult);
 }
		public void GetEnumerator()
		{
			ComplexFloatVector a = new ComplexFloatVector(new ComplexFloat[4] { 0, 1, 2, 3 });
			IEnumerator dve = a.GetEnumerator();
			ComplexFloat b;
			bool c;

			c = dve.MoveNext();
			b = (ComplexFloat)dve.Current;
			Assert.AreEqual(c, true);
			Assert.AreEqual(b, (ComplexFloat)0);

			c = dve.MoveNext();
			b = (ComplexFloat)dve.Current;
			Assert.AreEqual(c, true);
			Assert.AreEqual(b, (ComplexFloat)1);

			c = dve.MoveNext();
			b = (ComplexFloat)dve.Current;
			Assert.AreEqual(c, true);
			Assert.AreEqual(b, (ComplexFloat)2);

			c = dve.MoveNext();
			b = (ComplexFloat)dve.Current;
			Assert.AreEqual(c, true);
			Assert.AreEqual(b, (ComplexFloat)3);

			c = dve.MoveNext();
			Assert.AreEqual(c, false);
		}
		public void GetEnumeratorException()
		{
			ComplexFloatVector a = new ComplexFloatVector(new ComplexFloat[4] { 0, 1, 2, 3 });
			IEnumerator dve = a.GetEnumerator();

			ComplexFloat b = (ComplexFloat)dve.Current;
		}