Beispiel #1
0
        public static ArrayTestClass CreateDays()
        {
            ArrayTestClass testClass = new ArrayTestClass();

            testClass.Days = new DayOfWeek[] { DayOfWeek.Monday, DayOfWeek.Wednesday, DayOfWeek.Friday };
            return(testClass);
        }
		public static ArrayTestClass Create()
		{
			ArrayTestClass target = new ArrayTestClass();
			target.StringArray = new string[] { "1", "2", "3" };
			target.Elements = new ElementTestClass[] { ElementTestClass.Create("1"), ElementTestClass.Create("2"), ElementTestClass.Create("3") };
			return target;
		}
Beispiel #3
0
        public static ArrayTestClass Create()
        {
            ArrayTestClass target = new ArrayTestClass();

            target.StringArray = new string[] { "1", "2", "3" };
            target.Elements    = new ElementTestClass[] { ElementTestClass.Create("1"), ElementTestClass.Create("2"), ElementTestClass.Create("3") };
            return(target);
        }
Beispiel #4
0
 public static void AssertEquals(ArrayTestClass expected, ArrayTestClass actual)
 {
     Assert.AreEqual(expected.Elements.Length, actual.Elements.Length);
     for (int i = 0; i < expected.Elements.Length; i++)
     {
         Assert.AreEqual(expected.Elements[i], actual.Elements[i]);
     }
     Assert.AreEqual(expected.StringArray.Length, actual.StringArray.Length);
     for (int i = 0; i < expected.StringArray.Length; i++)
     {
         Assert.AreEqual(expected.StringArray[i], actual.StringArray[i]);
     }
     Assert.AreEqual(expected.Days.Length, actual.Days.Length);
     for (int i = 0; i < expected.Days.Length; i++)
     {
         Assert.AreEqual(expected.Days[i], actual.Days[i]);
     }
 }
		public static void AssertEquals(ArrayTestClass expected, ArrayTestClass actual)
		{
			Assert.AreEqual(expected.Elements.Length, actual.Elements.Length);
			for (int i = 0; i < expected.Elements.Length; i++)
			{
				Assert.AreEqual(expected.Elements[i], actual.Elements[i]);
			}
			Assert.AreEqual(expected.StringArray.Length, actual.StringArray.Length);
			for (int i = 0; i < expected.StringArray.Length; i++)
			{
				Assert.AreEqual(expected.StringArray[i], actual.StringArray[i]);
			}
			Assert.AreEqual(expected.Days.Length, actual.Days.Length);
			for (int i = 0; i < expected.Days.Length; i++)
			{
				Assert.AreEqual(expected.Days[i], actual.Days[i]);
			}
		}
		public static ArrayTestClass CreateDays()
		{
			ArrayTestClass testClass = new ArrayTestClass();
			testClass.Days = new DayOfWeek[] { DayOfWeek.Monday, DayOfWeek.Wednesday, DayOfWeek.Friday };
			return testClass;
		}