Co8551Byte.WorkOnInstanceAndLocal C# (CSharp) Method

WorkOnInstanceAndLocal() private method

private WorkOnInstanceAndLocal ( ) : void
return void
	private void WorkOnInstanceAndLocal()
	{
		int localInt, i, j;
                for ( i = 0; i < 100; i++ )
                {
                   int index = randomNumGen.Next(0, ValueArraySize); 
		   instanceInt_1 = ValueArray[index];
                   Thread.Sleep(index);  
                   localInt = instanceInt_1; 
                   for ( j = 0; j < ValueArraySize; j++ )
                     if ( ValueArray[j] == localInt )
                          break;
                   if (j == ValueArraySize )
                     throw new Exception("WorkOnInstanceAndLocal: Atomicity of Read/Write violated - " + localInt);
                }	

		Byte localInt_1;
		localInt_1 = 1 + 1;
		if(localInt_1 != 2)
			throw new Exception("Loc_7453fg! Major Error here");
		localInt_1 = Byte.MaxValue + Byte.MinValue;
		if(localInt_1 != Byte.MaxValue)
			throw new Exception("Loc_98745sg! Major Error here");
		localInt_1 = 100 * 2;
		if(localInt_1 != 200)
			throw new Exception("Loc_3975sg! Major Error here, " + localInt_1);
		localInt_1 = Byte.Parse("32");
		if(localInt_1 != 32)
			throw new Exception("Loc_975esg! Major Error here, " + localInt_1);
		localInt_1 = Byte.MaxValue;
		if(localInt_1.GetHashCode() != 255)
			throw new Exception("Loc_874325dg! Major Error here, " + localInt_1.GetHashCode());
		if(localInt_1.ToString() != "255")
			throw new Exception("Loc_8754s! Major Error here, " + localInt_1.ToString());
	}